Open lenehan2 opened 3 years ago
Currently, ConntectUIRouter requires plugins to be passed as a prop. This limits the ability to apply plugins exclusively by setting them on the router instance.
plugins
For example
const router = new UIRouterReact(); router.plugin(pushStateLocationPlugin); const store = createRoutedStore(router); const App = () => ( <Provider store={store}> <ConnectedUIRouter router={router} states={states} >
instead of passing the pushStateLocationPlugin in via plugins prop here.
pushStateLocationPlugin
Pr https://github.com/ui-router/redux/pull/14 defaults the plugins prop to an empty array which allows users to set these manually when creating the router instance.
Currently, ConntectUIRouter requires
plugins
to be passed as a prop. This limits the ability to apply plugins exclusively by setting them on the router instance.For example
instead of passing the
pushStateLocationPlugin
in viaplugins
prop here.Pr https://github.com/ui-router/redux/pull/14 defaults the
plugins
prop to an empty array which allows users to set these manually when creating the router instance.