-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add ability to whitelist certain keys from state #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with 10MB Json data. It works great from my side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really great!
All right so merge and new release? |
I will merge it and publish it to npm later. |
Description
We noticed same slowness as issue #27 . The reason for slowness is that if your app has huge Redux state then Flipper is making app veeeeryyyy slow. Solution for this is it only watch certain keys of your Redux state.
This change is necessary in any way since often times in big production apps the store has 30 different root keys and you are only interested only in one when debugging. And you can still see the whole state if you want if you don't specify
stateWhitelist
How to test?
Add
stateWhitelist
to your configuration and add some keys to the array which are included in your Redux state and see from Flipper app that only that part of the state is logged on actionsFixes #27