Open fredericrous opened 8 months ago
example code:
const binder = createYjsReduxBinder(options); const rootReducer = binder.enhanceReducer(combineReducers({ builder: builderReducer, })); configureStore({ reducer: rootReducer, middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(binder.middleware as any), });
the error
Error: Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.
workaround is to not use the default middlewares
middleware: (getDefaultMiddleware) => [binder.middleware as any]
I think that should maybe not be fixed but at least documented
I cannot remember that i have experienced this issue. Weird.
example code:
the error
workaround is to not use the default middlewares
I think that should maybe not be fixed but at least documented