Basename middleware with createConnectedRouter + createHistoryEnhancer
See original GitHub issueHow can I pass a basename other than ‘/’ to createConnectedRouter
(when using a shared Redux store)?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to use the found/lib/Matcher function in found
const middlewares = [ queryMiddleware ] if (options.basename) ... basename: options.basename })) } return [ createHistoryEnhancer({ protocol: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m reopening this so I don’t forget to fix the “dummy” case.
Ah, so I just realised it causes the above error if the
basename
is'/'
||''
. Sorry for that confusion. It works fine ifbasename
is set to another value.So, it is possibly an error here: https://github.com/4Catalyzer/farce/blob/9d3ad263040e1c08ae10aa949064d56f34e3e21c/src/createBasenameMiddleware.js#L4