Skip to content

Commit

Permalink
use initial state for rootReducer in with-redux-saga example (#35406)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibautsabot committed Mar 18, 2022
1 parent 910c48f commit 084e000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-redux-saga/reducer.js
Expand Up @@ -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 }
Expand Down

0 comments on commit 084e000

Please sign in to comment.