I have a custom hook that processes a certain state variable.
Whenever you change the state It does not update immediately so I have to subscribe to it using useEffect.
However it is categorically impossible to call a custom hook within useEffect.
How does one get their custom hooks to do anything at all with a state variable?