Using redux-first-router within the application with the base URL different from '/'?
See original GitHub issueHow 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:
- Created 6 years ago
- Comments:52 (51 by maintainers)
Top 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 >
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
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.
Demo app has been updated. See my pull.