Open mrmuhammadali opened 5 years ago
This plugin isn't super well supported right now. It was built as a proof of concept. I recommend keeping routing logic separate from the redux store and using the withRouter
hoc to get access to routing related props.
Type of issue
Bug
Description
Project builds successfully but I get following error on app start:
My Code looks something like this:
app.register(RouterToken, Router)
app.register(RouterProviderToken, ConnectedRouter)
app.register(ConnectedRouterEnhancerToken, ConnectedRouterEnhancer)
app.register( EnhancerToken, createPlugin({ deps: { connectedRouterEnhancer: ConnectedRouterEnhancerToken }, provides: ({ connectedRouterEnhancer }) => { const enhancer = composeEnhancers( connectedRouterEnhancer, applyMiddleware(...middlewares), ) return enhancer }, }), )
app.register(ReduxToken, Redux)
app.register(ReducerToken, rootReducer)
Current behavior
App crashes
Steps to reproduce
I've followed the steps given in the documentation but failed to connect this plugin.
Your environment
fusion-plugin-connected-react-router version: 1.0.1
Node.js version: 8.11
npm version: 5.6.0
Operating System: macOS Mojave