[Routing / Navigation question] How to load / handle query params? #277
-
I'm making a simple HTTP API fetching front end, that takes something like Are there any examples / demos of Query params with perseus? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Is If you want to have one page using request-time state to return details for a search in an actual URL query parameter, then you would need access to the query parameters through the |
Beta Was this translation helpful? Give feedback.
Incremental generation handles all that for you! Your build state function will take in a path, and you can so anything you want from there: all the logic for fetching is in there based on the path you get. From there, routing is implicit.
The
state_generation
example should cover most of this?