persistent-filter

Community

Persist UI filters across URL and session.

AuthorSwear4
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Automatically persisting UI filter state across the URL and sessionStorage eliminates manual re-entry and keeps filters consistent when users navigate, share links, or refresh pages.

Core Features & Use Cases

  • Persist chosen filter values to URL search params for shareable links and browser navigation.
  • Mirror state in sessionStorage to maintain per-tab memory while avoiding stale data across tabs.
  • Support common UI controls (dropdowns, toggles, search fields, date pickers, status selectors) with a single reusable hook.

Quick Start

Implement a usePersistentFilter hook and replace your filter state with it so every filter persists in the URL and sessionStorage.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: persistent-filter
Download link: https://github.com/Swear4/agent_rules/archive/main.zip#persistent-filter

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.