-
Notifications
You must be signed in to change notification settings - Fork 945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All actions are wrapped? #239
Comments
Nevermind I've found what it is, it was redux devtool's composer that was adding its own wrapping to the actions: const composeEnhancers = (typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__)
? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__()
: compose;
const store = Reactotron.createStore(reducers, initialState, composeEnhancers(middlewares)); If I switch it to just |
Good stuff! |
Ahh. You raise a good point here though. I'm doing the same thing (in spirit) as @zalmoxisus. We're both trying to make sure we're in front & behind the call to create store so we can maintain references. All A short-term work around might be to do the work of // first wrap your reducer to take advantage of Reactotron's state uploading/downloading
const tronducer = Reactotron.createReplacementReducer(rootReducer)
// add an additional enhancer to your list so we can monitor redux actions
const enhancers = composeEnhancers(middlewares, Reactotron.createActionTracker())
// then create your store as usual
const store = createStore(tronducer, enhancers)
// then tell Reactotron about the store so we're able to dispatch events & query the state tree from Reactotron
Reactotron.setReduxStore(store) As a longer-term fix, I can probably detect Caveat: I didn't test that code, so this is pretty much me talking out of my ass right now. I feel like it should work tho. :) |
It's not directed related to the extension itself, but to @skellock's snippet should help. |
) Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: WhiteSource Renovate <[email protected]>
I'm testing out the redux integration, but for some reason all my actions appear in Reactotron as wrapped in another action which makes it very hard to see at a glance what is happening:
Is this an option I have to configure or?
The text was updated successfully, but these errors were encountered: