zalmoxisus / remote-redux-devtools

Redux DevTools remotely.
http://zalmoxisus.github.io/monitoring/
MIT License
1.81k stars 139 forks source link

Cannot configure it with react server side rendering... #112

Open elissaioskon opened 6 years ago

elissaioskon commented 6 years ago

Hi, My code is :

let isBrowzer = typeof window === 'object' ? true : false

const store = isBrowzer ? createStore(reducer, window.PRELOADED_STATE, 
composeWithDevTools(
  applyMiddleware(thunk),
)) : createStore(reducer,
composeWithDevTools(
  applyMiddleware(thunk),
))

When i click on remote dev tools image Any idea?thanks

kkammili commented 5 years ago

Try using redux-devtools-extension

example:

import logger from 'redux-logger' import {composeWithDevTools} from 'redux-devtools-extension'

export const history = createMemoryHistory() const middlewares = [ thunk, routerMiddleware(history), logger ]

const store = createStore( reducer, Map(), composeWithDevTools( applyMiddleware(...middlewares) ) )

export default store