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.

Unable to get route key

See original GitHub issue
const routes = {
  "/": HomePage,
  "/example/:id": ExamplePage,
}

<Router {routes} on:routeLoaded={routeLoaded} />

Currently there have no way to get the route key /example/:id in event on:routeLoaded, i hope you expose the value in the on:routeLoaded event

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ItalyPaleAlecommented, Sep 6, 2020

Ok I’ve implemented it in the v3.0 branch. I am hoping to have the time to finish work on that branch soon and make a release 😃

0reactions
si3nloongcommented, Sep 8, 2020

👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

unable to get the routes from the google api - Stack Overflow
I got the api key by following the usual steps. Then I was able to get map and use some inbuilt things on...
Read more >
Working with routes for HTTP APIs - Amazon API Gateway
Routes direct incoming API requests to backend resources. Routes consist of two parts: an HTTP method and a resource path—for example, GET /pets...
Read more >
Error:Failed to get default route entry - Knowledge Base
When trying to login to the Global Protect Gateway, error message " Connection Failed: Failed to get default route entry" is seen.
Read more >
Routing - Laravel - The PHP Framework For Web Artisans
Make sure to give the route's corresponding variable a default value: ... If you pass additional parameters in the array, those key /...
Read more >
Routing and Action Selection in ASP.NET Web API
A route template looks similar to a URI path, but it can have ... for this key and append the string "Controller" 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