From 1f84a6244c3f2a40f5e1a361e886e729db6985d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Fri, 19 Oct 2018 09:57:24 -0700 Subject: [PATCH] update persistedStateReducer API Summary: upadting to the new API: ``` static persistedStateReducer: ?( persistedState: P, method: string, data: Object, ) => $Shape

; ``` Reviewed By: jknoxville Differential Revision: D10466918 fbshipit-source-id: 08ba963c6ae744d8d445e375c41f601e9bafd4da --- docs/writing-a-plugin.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/writing-a-plugin.md b/docs/writing-a-plugin.md index 508da96bb..43fb514e1 100644 --- a/docs/writing-a-plugin.md +++ b/docs/writing-a-plugin.md @@ -39,6 +39,7 @@ static defaultPersistedState = { static persistedStateReducer = ( persistedState: PersistedState, + method: string, newData: Object, ): PersistedState => { // Logic to merge current state with new data