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.

Enhancer loose all the query parameters on first route

See original GitHub issue

I’m experiencing a weird issue, the first url of my app is something like http://localhost/url?foo=foo&bar=bar. If I add the enhancer to my store and the first action is being dispatched I loose all the parameter and my url became just http://localhost/url.

My route is defined normally in the routMap as

const routesMap = {
  ROUTE_URL: '/url'
}

Do I need to specify further options perhaps? How can I keep the query parameters in the url using the enhancer?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
faceyspaceycommented, Jan 19, 2018

yes, it will automatically be handled. you won’t have to provide a query serializer option. hash strings will be handled as well.

0reactions
florian-bdcommented, Jan 19, 2018

@faceyspacey Do you mean it will be handled automatically in the next version? Will it work with the hash string as well?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add a way to change the query params on a page easily. #969
I would like an easy way to change the query params in the address bar at runtime. Usecases: I want to sync a...
Read more >
Query Parameters - Routing - Ember Guides
This section describes how routing query parameters are used in Ember. See finding records to see how query parameters are applied to API...
Read more >
Advanced Routing Configuration (for Extensions)
An route enhancer is there to replace a set of placeholders and fill in URL parameters on URL generation and resolving them properly...
Read more >
Redux-First Router data-fetching: solving the 80% use case ...
In the majority of cases data can be paired to the route, i.e. the URL and parameters in the URL. How to get...
Read more >
TYPO3 9.5 languageNavigation doesn't take query ...
TYPO3 9.5 languageNavigation doesn't take query parameters when switching language (e.g. News Detail) using route-enhancer.
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