react-router-redux icon indicating copy to clipboard operation
react-router-redux copied to clipboard

Reload browser, action"@@router/LOCATION_CHANGE" will make some states gone. (SSR)

Open xiaodu527 opened this issue 9 years ago • 1 comments

Hello, I begin to SSR based on davezuko/react-redux-starter-kit boilerplate.

everything goes ok but, when I reload the browser, some states at the initial store are gone. here is the situation:

qq 20170517112629

qq 20170517112612

as the picture above , the "invention_works" state was preloaded at server side. The page was normal at first, but immediately data gone.

BTW, the router's path is "/invention/works", and the reducer "invention_works" is injected by

export const injectReducer = (store, { key, reducer }) => {
  if (Object.hasOwnProperty.call(store.asyncReducers, key)) return

  store.asyncReducers[key] = reducer
  store.replaceReducer(makeRootReducer(store.asyncReducers))
}

Does it matter?

I would appreciate it very much if somebody help me.

xiaodu527 avatar May 17 '17 03:05 xiaodu527

This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux. Thanks!

timdorr avatar May 17 '17 04:05 timdorr