From 084e00016fd1080814c2244937adada30ae20edf Mon Sep 17 00:00:00 2001 From: Thibaut SABOT <9283289+thibautsabot@users.noreply.github.com> Date: Fri, 18 Mar 2022 11:20:20 +0100 Subject: [PATCH] use initial state for rootReducer in with-redux-saga example (#35406) --- 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 }