Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiliman/remix-scoped-params
Project showing how to track params across multiple routes by scope
https://github.com/kiliman/remix-scoped-params
Last synced: 6 days ago
JSON representation
Project showing how to track params across multiple routes by scope
- Host: GitHub
- URL: https://github.com/kiliman/remix-scoped-params
- Owner: kiliman
- License: mit
- Created: 2022-05-20T19:59:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-24T07:06:53.000Z (almost 2 years ago)
- Last Synced: 2024-08-03T13:05:08.246Z (3 months ago)
- Language: TypeScript
- Size: 380 KB
- Stars: 36
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Remix Scoped Params
This example shows how to the the `useScopedParams` hook and the
`getScopedParams` function to manage search params across multiple
routes by scope.This example has three separate tabs, and in each tab, you can page
through the data and sort by column. The scoped params will encode
the current page and sort info for each tab, so that you can easily
navigate to another tab without losing the previous tabs params.Each tab has it's own `scope` that is used as a prefix to the search
params.See example at https://remix-scoped-params-production.up.railway.app