elgerlambert / redux-localstorage

Store enhancer that syncs (a subset) of your Redux store state to localstorage.
MIT License
1.32k stars 107 forks source link

An example of how this works with the redux-devtools-extension? #88

Open Huanzhang89 opened 6 years ago

Huanzhang89 commented 6 years ago

I've been trying to get this to work with composeWithDevTools from redux-devtools-extension like this

import {createStore,applyMiddleware,compose} from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import thunk from 'redux-thunk';
import persistState from 'redux-localstorage'

const store = createStore(
  reducers,
  composeWithDevTools(
    applyMiddleware(thunk),
    persistState(),
  )
)

export default store

However this breaks all the async requests in my app.

Any ideas?

j0hnk1m commented 3 years ago

@Huanzhang89 Hi! Are there any updates to this issue?