Closed raulmax319 closed 10 months ago
any solution here ?
I catch this error? Any solution please. thanh you
Similar but not identical resolved issue of using with Redux Tookit https://stackoverflow.com/questions/73358881/how-we-configure-reactotron-with-reduxjs-tookkit
With Redux Toolkit + typescript, in store.ts, I successfully used the exclamation point to ignore the missing type:
export const store = configureStore({
reducer: {
c: cReducer,
auth: authReducer,
},
enhancers: [
Reactotron.createEnhancer!(),
],
})
@thadk Hi, thanks for your answer, I'm facing another issue with jest test. Is anyone facing the same issue? Thank you guys!
@thadk Hi, thanks for your answer, I'm facing another issue with jest test. Is anyone facing the same issue? Thank you guys!
woker me
const enhancers = Reactotron?.createEnhancer
? composeEnhancers(applyMiddleware(...middlewares), Reactotron.createEnhancer())
: composeEnhancers(applyMiddleware(...middlewares));
const store = createStore(persistedReducer, enhancers);
try [(Reactotron as any).createEnhancer()]
it work for me
Wokring for me enhancers: getDefaultEnhancers => getDefaultEnhancers().concat(Reactotron.createEnhancer()),
When using redux with reactotron i get the following problem message when using with typescript.
Property 'createEnhancer' does not exist on type 'Reactotron<ReactotronReactNative> & ReactotronReactNative'.ts(2339)
Here what my code looks like:
createStore.ts
reactotron.ts