Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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