rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.94k stars 866 forks source link

How to get rid of this nasty error on the persist/PERSIST action #708

Open kennethpdev opened 6 years ago

kennethpdev commented 6 years ago

I'm having a difficulty understanding what this error is on the dev tools.

image

This is my store and persistor

  let persistedReducer = persistReducer(config, rootReducer);
  let storeEnhancer = compose(applyMiddleware(...middlewares), DevTools.instrument());
  let store = createStore(persistedReducer, initialState, storeEnhancer);
  let persistor = persistStore(store);

The app is I think working just fine. Just this errors on the dev tools.

Thanks is advance

rt2zz commented 6 years ago

that is not an error, those are methods we attach to enable persistence. 👍

kennethpdev commented 6 years ago

oh okay then, is there a way to hide it on the dev tools at least? Everytime you open the app that's the first thing you see instead of the other reducers and actions. Even just collapse it on load.

rt2zz commented 6 years ago

my devtools are auto collapsed, maybe there is a setting for that for the plugin

kennethpdev commented 6 years ago

I guess there's no such option. I'm using this dock monitor https://github.com/gaearon/redux-devtools-dock-monitor . Every time it loads the app they getting auto expanded at least on that action only. Because on other normal actions they were collapsed. Just this persist/PERSIST action. Could you share your dev tools configuration at least. Anyway thanks for the help

rt2zz commented 6 years ago

https://github.com/zalmoxisus/remote-redux-devtools

I highly recommend this 👍