Started debugging a React hook. Ended up questioning the nature of consciousness.
useEffect(() => {
console.log('why am i like this');
fetchUserData();
}, [userId]);useEffect(() => {
const consciousness = setInterval(() => {
ponderExistence();
questionReality();
}, 1);
return () => {
// sleep
clearInterval(consciousness);
};
}, [experience, caffeine, proximity_to_deadline]);But also, your original bug? Still there. Want to fix it before we solve existence?useEffect to the nature of existence and back. Thank you for taking me on this journey. Get some sleep. Your cleanup function needs to run. 💙