Skip to content

Refactor Zustand stores to use slices pattern for modularity #716

Description

@Smartdevs17

Context

Zustand stores have grown large and need modularization.

Current Limitation

Stores are monolithic with mixed concerns.

Expected Outcome

  • Modular store slices per domain
  • Lazy-loaded store modules
  • Improved TypeScript inference
  • Better devtools integration

Acceptance Criteria

  • Store slices for each domain
  • Lazy loading for non-critical stores
  • TypeScript type inference for slices
  • Devtools integration per slice
  • Persist middleware per slice
  • No performance regression
  • Migration guide for existing usage

Technical Scope

  • src/store/ - All Zustand stores
  • app/stores/ - Extended stores
  • src/hooks/ - Store access hooks
  • src/components/ - Component integration

Metadata

Metadata

Assignees

No one assigned

    Labels

    200-points200 point issueStellar WaveIssues in the Stellar wave programdrips-waveIssues in the Drips Wave programhighHigh complexity issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions