StoryNote logo

Does updating a dependent state within useEffect immediately short-circuit the effect and re-run it, or does it finish running the rest of the effect body and then re-run the effect afterwards?

by /u/MoistCarpenter in /r/reactjs

Upvotes: 1

Favorite this post:
Mark as read:
Your rating:
Add this post to a custom list

StoryNote©

Reddit is a registered trademark of Reddit, Inc. Use of this trademark on our website does not imply any affiliation with or endorsement by Reddit, Inc.