Unverified Commit 084e0001 authored by Thibaut SABOT's avatar Thibaut SABOT Committed by GitHub

use initial state for rootReducer in with-redux-saga example (#35406)

parent 910c48f5
...@@ -9,7 +9,7 @@ const initialState = { ...@@ -9,7 +9,7 @@ const initialState = {
placeholderData: null, placeholderData: null,
} }
function reducer(state, action) { function reducer(state = initialState, action) {
switch (action.type) { switch (action.type) {
case HYDRATE: { case HYDRATE: {
return { ...state, ...action.payload } return { ...state, ...action.payload }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment