From 5a739f9cca70bc4ab96338a33a93b4be88167a7c Mon Sep 17 00:00:00 2001 From: Thibaut Sabot Date: Thu, 17 Mar 2022 17:45:48 +0100 Subject: [PATCH] use initial state for rootReducer in with-redux-saga example --- examples/with-redux-saga/reducer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-redux-saga/reducer.js b/examples/with-redux-saga/reducer.js index 99f3fb2fff1f..bf6f733bd230 100644 --- a/examples/with-redux-saga/reducer.js +++ b/examples/with-redux-saga/reducer.js @@ -9,7 +9,7 @@ const initialState = { placeholderData: null, } -function reducer(state, action) { +function reducer(state = initialState, action) { switch (action.type) { case HYDRATE: { return { ...state, ...action.payload }