Removing Effect Dependencies
Challenge 4 of 4: Fix a reconnecting chat, again
Dependencies should match the code
Should this code move to an event handler?
Is your Effect doing several unrelated things?
Are you reading some state to calculate the next state?
Do you want to read a value without “reacting” to its changes?
Does some reactive value change unintentionally?
Challenge 1 of 4: Fix a resetting interval
Challenge 2 of 4: Fix a retriggering animation
Challenge 3 of 4: Fix a reconnecting chat
Challenge 4 of 4: Fix a reconnecting chat, again
Not ready yet!
This lesson requires a version of React that is currently experimental.