solara
solara copied to clipboard
feat: query parameter hook
Allows to use query parameters to manage state.
@koenvo this is what I planned for the query parameter API.
But with solara 1.7.1 you can use the more crude API:
....
router = use_router()
router.push("/some/path?count=10")
@koenvo this is what I planned for the query parameter API.
But with solara 1.7.1 you can use the more crude API:
.... router = use_router() router.push("/some/path?count=10")
Great! For me it’s most important to be able to access the query parameters instead of pushing new ones. Should that already work using use_router().search?
Great! For me it’s most important to be able to access the query parameters instead of pushing new ones. Should that already work using use_router().search?
Indeed, that should be enough for your use case, so you don't need to wait til this branch is merged and released.