shared-state-no-url

Community

Share state across components without URL sync.

Authorasmyshlyaev177
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It enables cross-component shared state when you do not want (or should not) synchronize that state into the URL, avoiding refresh-loss and preventing sensitive/large data from being exposed via query params.

Core Features & Use Cases

  • Shared in-memory module-scoped state: Components share data only when they pass the same module-scoped default state identity (identity-based, not deep equality).
  • Framework-agnostic hook usage: Works across React, Next.js, Vite, and Remix with no Context.Provider setup.
  • Optional SSR initial value hydration: Supports providing an initializer function to set the initial state once (useful for cookie-driven SSR).

Quick Start

Ask the user to import and use useSharedState from state-in-url to connect components to the same exported default-state object, ensuring URL sync remains explicitly disabled.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: shared-state-no-url
Download link: https://github.com/asmyshlyaev177/state-in-url/archive/main.zip#shared-state-no-url

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.