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.

Using redux-first-router within the application with the base URL different from '/'?

See original GitHub issue

How to use this component with history/createMemoryHistory at server side, if we have base URL different from ‘/’? This code doesn’t work: const history = createHistory({ initialEntries: [req.path] }) This doesn’t work too: const history = createHistory({ initialEntries: ['<publicUrl>' +req.path] })

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
BrendanFDMoorecommented, Nov 27, 2017

Just wanted to say thanks for this feature & discussion @faceyspacey & @re6exp - tons of good work here, and the documentation/history (ah-hyuk) to back it up.

Cheers.

1reaction
re6expcommented, Sep 20, 2017

Demo app has been updated. See my pull.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add a Base URL to an App Using Redux and React Router
In this guide, you will learn how to set up a base URL in React Router and how to combine Redux seamlessly.
Read more >
React Router with Redux: Understanding navigation state
Use React Router to declaratively navigate within your React and Redux applications and maintain state across your app's navigation ...
Read more >
URL State in Redux - An Introduction to Redux First Router
In this tutorial, you'll make a simple React-Redux app and learn how to use Redux First Router to seemlessly sync Redux state with...
Read more >
An Introduction to the Redux-First Routing Model
Navigation — Everything starts with a change in location. · Responding to navigation — When the location changes, the application responds by ...
Read more >
Adding a base URL to an app using Redux-Router + React ...
4 Answers 4 ; import { createHistory } from 'history' ; import { useRouterHistory } from 'react-router' ; import { syncHistoryWithStore } from...
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