Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Can we expect useEffectReducer to work with react 18? #39

Closed
rodrigofariow opened this issue May 18, 2022 · 2 comments
Closed

Can we expect useEffectReducer to work with react 18? #39

rodrigofariow opened this issue May 18, 2022 · 2 comments

Comments

@rodrigofariow
Copy link

rodrigofariow commented May 18, 2022

Hey @davidkpiano !

First of all, thank you for this awesome reducer! It's the perfect approach for me and my team right now without getting 100% into xstate (yet).

Anyways, we are planning on upgrading to react 18 soon and I would like to know if I can count on not having effects running multiple times (due to the whole Strict Mode thing).
Don't know if you have tested useEffectReducer with it yet, but if you did, I was hoping to know your results 🙏

Thank you for your time!

@davidkpiano
Copy link
Owner

Hey, unfortunately I haven't reworked this for React 18 (yet), but due to the nature of useEffect, it is still very possible that effects will double execute on first render.

@rodrigofariow
Copy link
Author

Hello,
Thanks for the quick reply! 🙏

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants