update persistedStateReducer API

Summary:
upadting to the new API:
```
static persistedStateReducer: ?(
  persistedState: P,
  method: string,
  data: Object,
) => $Shape<P>;
```

Reviewed By: jknoxville

Differential Revision: D10466918

fbshipit-source-id: 08ba963c6ae744d8d445e375c41f601e9bafd4da
This commit is contained in:
Daniel Büchele
2018-10-19 09:57:24 -07:00
committed by Facebook Github Bot
parent 6cc7f60cde
commit 1f84a6244c

View File

@@ -39,6 +39,7 @@ static defaultPersistedState = {
static persistedStateReducer = ( static persistedStateReducer = (
persistedState: PersistedState, persistedState: PersistedState,
method: string,
newData: Object, newData: Object,
): PersistedState => { ): PersistedState => {
// Logic to merge current state with new data // Logic to merge current state with new data