Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Basename middleware with createConnectedRouter + createHistoryEnhancer

See original GitHub issue

How can I pass a basename other than ‘/’ to createConnectedRouter (when using a shared Redux store)?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

taioncommented, Nov 3, 2017

I’m reopening this so I don’t forget to fix the “dummy” case.

lukehedgercommented, Oct 26, 2017

Ah, so I just realised it causes the above error if the basename is '/' || ''. Sorry for that confusion. It works fine if basename is set to another value.

So, it is possibly an error here:

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found