Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React.Strict mode forces the getData to run twice #194

Open
vongohren opened this issue Oct 19, 2020 · 0 comments
Open

React.Strict mode forces the getData to run twice #194

vongohren opened this issue Oct 19, 2020 · 0 comments

Comments

@vongohren
Copy link

I just did a create react app and recieves the react strict mode <React.StrictMode> around my App.
If i just add a simple route that uses getData, or anything withData like that, it ends up running that data function twice.
I removed all context and everything but the sinner was <React.StrictMode>

So I guess it is reproducible by just running CRA cli and adding navi to the mix, one with a route that wants to get data

Sorry for not being able to make on right now, just running out of time here, but wanted to leave this breadcrumb of information

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

No branches or pull requests

1 participant