My code is like this:
const dispatch = useDispatch(); useEffect(() => { return () => { dispatch(some_action); } }, [])
However,