react ref undefined in useeffect. tag = 4 不会添加到副作用执