Post
however, React effects don’t provide a way to read previous values of state so it’s unclear where to stick this code the mindbending moment is realizing that by exiting early, you’ll let the “previous iteration” of the effect clean up for itself (unsubscribing), while the “next iteration” is a noop
1 repost17 likes