persist notification filter

Summary:
persist the state of the redux store of `blacklistedPlugins`, so we don't show notifications for them.

This also fixes a bug where defaultFilters were not shown in the filterbar.

Reviewed By: passy

Differential Revision: D12924356

fbshipit-source-id: ebc5d2f5d2d3acfb5ed63d4085b65b7a78a7b05a
This commit is contained in:
Daniel Büchele
2018-11-06 05:36:20 -08:00
committed by Facebook Github Bot
parent f7063448e2
commit 9fb3a56303
2 changed files with 27 additions and 25 deletions

View File

@@ -60,5 +60,12 @@ export default combineReducers({
connections,
),
pluginStates,
notifications,
notifications: persistReducer(
{
key: 'notifications',
storage,
whitelist: ['blacklistedPlugins'],
},
notifications,
),
});