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

Application renders unnecessarily when we change state in App.js #3807

Open
dhavallogistic opened this issue Dec 9, 2021 · 0 comments
Open

Comments

@dhavallogistic
Copy link

dhavallogistic commented Dec 9, 2021

Version

Tell us which versions you are using:

  • react-native-router-flux v4.3.1
  • react v17.0.1
  • react-native v0.64.2

Expected behaviour

I have bind separate router component/file into App class.
While change state variable to App class, it render whole application.
When I update state variable, it render unnecessarily.

Actual behaviour

If we change any state variable in App class even it should not render app and should not re render children components

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.

  1. Bind router component to App.js
  2. Add state variable to App.js as test. And on click of on Button change param of that state.
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