Reputation: 35
Folks, I am pretty sure I am not the first one to stumble on this problem. But somehow I am unable to find any relevant resources out there.
Here is my issue, I have a backend in Django and my front completely written in Reactjs- React Router - Redux (nice combo right).
The problem arise when I want to refresh a page, the browser still tries to query the server even though a route exists in my react-router configuration.
Upvotes: 0
Views: 400
Reputation: 13731
You can setup up a wildcard url pattern that will render the same view that gets rendered when a request is sent to webhost.com. I don't know if that's going to retain your store though.
Upvotes: 1