How to support Reusable State in Effects · reactwg react-18 · Discussion #18
Note: We wrote a new page documenting this behavior in detail on the Beta website: https://beta.reactjs.org/learn/synchronizing-with-effects#how-to-handle-the-effect-firing-twice-in-development. Ho...