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

Add ability to whitelist certain keys from state #33

Merged
merged 10 commits into from
Sep 23, 2020

Conversation

henrikra
Copy link
Contributor

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 actions

Fixes #27

@plwai plwai requested review from jk-gan and plwai and removed request for jk-gan September 22, 2020 09:30
Copy link
Collaborator

@plwai plwai left a 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.

Copy link
Owner

@jk-gan jk-gan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really great!

@henrikra
Copy link
Contributor Author

All right so merge and new release?

@plwai
Copy link
Collaborator

plwai commented Sep 23, 2020

All right so merge and new release?

I will merge it and publish it to npm later.

@plwai plwai merged commit 0425192 into jk-gan:master Sep 23, 2020
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

Successfully merging this pull request may close these issues.

Slow when dealing with a big state tree
3 participants