React Router And Arbitrary Query Params: Page Refreshes Unintentionally On Load?
I've been using React Router with great success the past few weeks, but I just ran into an issue that I can't seem to find a resolution for. Whenever an arbitrary query parameter
Solution 1:
The problem here is that you're using Router.HashLocation
, the default location if you don't specify one.
Router.run(routes, Router.HistoryLocation, function(...
Will fix the problem, but you'll need a server that can handle it.
If you still want hash location, put your query after the #
. As far as HashLocation
is concerned, the query before the #
is not part of the location that it understands.
Post a Comment for "React Router And Arbitrary Query Params: Page Refreshes Unintentionally On Load?"