zalmoxisus / remote-redux-devtools

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

No store found #107

Open hosseind2017 opened 6 years ago

hosseind2017 commented 6 years ago

I am using nextjs...I want use redux dev tools it is my store config:

import { applyMiddleware, createStore } from "redux"
import { composeWithDevTools } from 'redux-devtools-extension'
import thunkMiddleware from 'redux-thunk'

import reducers from "./reducers"

export default function create(client, preloadedState) {
    const thunkMiddleware = thunk.withExtraArgument(client);
    return createStore(reducers, preloadedState, composeWithDevTools(applyMiddleware(thunkMiddleware)));
}

export const initStore = (initialState) => {
    const api = new ApiClient();
    return create(api, initialState);
}

but I cant use redux dev tools ant it give me 'No store found'