question-mark

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

Issue Description

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
taioncommented, Nov 3, 2017

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

0reactions
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: https://github.com/4Catalyzer/farce/blob/9d3ad263040e1c08ae10aa949064d56f34e3e21c/src/createBasenameMiddleware.js#L4

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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found