-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
In react strict-mode, hooks are sometimes executed a second time to check if the output is pure & the same (in some weird ass mode where console.log is overridden to hide log side effects).
This is however a fundamental issue with useImmediateEffect implementations, as the immediate effect is run again in this mode, and almost always has side effects.
Not sure this can be fixed. Leaving this here as a warning for others as it took me half a day to figure out what was going on.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels