jk-gan / redux-flipper

Redux middleware for React Native for Flipper
MIT License
158 stars 21 forks source link

Add ability to whitelist certain keys from state #33

Closed henrikra closed 3 years ago

henrikra commented 3 years ago

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

henrikra commented 3 years ago

All right so merge and new release?

plwai commented 3 years ago

All right so merge and new release?

I will merge it and publish it to npm later.