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 = {
placeholderData: null,
}
function reducer(state, action) {
function reducer(state = initialState, action) {
switch (action.type) {
case HYDRATE: {
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