title: How to make a custom hook respond to changes in state?
body: <p>I have a custom hook that processes a certain state variable.</p>
  <p>Whenever you change the state It does not update immediately so I have to subscribe to it using useEffect.</p>
  <p>However it is categorically impossible to call a custom hook within useEffect.</p>
  <p>How does one get their custom hooks to do anything at all with a state variable?</p>