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.

Make path-parser replaceable with other library

See original GitHub issue

Hi @troch path-parser has very limited functionality. It would be nice to make it replaceable using some config option.

Also it is not possible to define routes with multiple varying query params.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
mikkelwfcommented, Mar 28, 2019

@troch It would be nice to have options URL params. Especially for routes displaying default / unfiltered content (content without the URL param). Right now the route needs to be registered two times, and the forwardTo does not really change this, since the example with two child routes now totals 3 unique routes.

0reactions
aleksandrlatcommented, Feb 7, 2019

Thank you @troch!

Also for url like this http://localhost:3000/user/settings?integrationstab=true&no-rsc-connect param no-rsc-connect does not appear in params of route. I use queryParamsMode = loose And then when I navigate to http://localhost:3000/user/settings?integrationstab=true without no-rsc-connect like this:

route = router5.getState()
delete route.params['no-rsc-connect']
router5.navigate(route.name, route.params)

router5 does not change url to http://localhost:3000/user/settings?integrationstab=true no-rsc-connect still present. Because no-rsc-connect was not parsed correctly. This is one more reason to use another parser.

For using a different parser, I’m unsure about the outcome (whether it’s something which is feasible or not), and I’m not willing to try myself.

Will you accept PR if I implement it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Replace (or "Override") String in Android Library Project
I have the same arrangement and this works for me as expected. The library has layout/class with this reference to a string resource:...
Read more >
Build Command-Line Interfaces With Python's argparse
In Python, you can create full-featured CLIs with the argparse module from the standard library. In this article, you'll learn how to:.
Read more >
URL Matching with PathPattern in Spring MVC
In Spring applications AntPathMatcher is used to identify classpath, file system, remote, and other resources in Spring configuration.
Read more >
6 Reader Helpers - CS @ Utah
The syntax/module-reader library provides support for defining #lang readers. ... It provides all of the bindings of racket/base other than #%module-begin.
Read more >
Compose UI - Android Developers
Please take a look at the existing issues in this library before you create a new one. You can add your vote to...
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