useEffect cleanup when triggered by state

后端 未结 0 1208
灰色年华
灰色年华 2021-01-22 13:59

I have a component that I trigger via a state object:

const Alerts = () => {
  const alert = useStore((state) => state.alert);
  const setAlert = useStore((         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题