Skip to content

feat: add typed selector hooks for app stores - #1240

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
Meet-hybrid:feat/store-selector-hooks
Aug 26, 2026
Merged

feat: add typed selector hooks for app stores#1240
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
Meet-hybrid:feat/store-selector-hooks

Conversation

@Meet-hybrid

Copy link
Copy Markdown
Contributor

Description

Adds explicit, generic selector hooks for the messaging, notification, and volunteer Zustand stores. Components can now subscribe to only the state they need, for example useMessagingStoreSelector((state) => state.messages), avoiding re-renders from unrelated updates.

Includes regression tests that verify focused selectors do not re-render when unrelated store slices change.

Related Issue

Closes #902

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Validation

  • pnpm vitest run src/app/store/__tests__/selectorHooks.test.tsx
  • pnpm run type-check
  • pnpm run lint

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No console errors introduced

@drips-wave

drips-wave Bot commented Aug 26, 2026

Copy link
Copy Markdown

@Meet-hybrid Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project.

@RUKAYAT-CODER
RUKAYAT-CODER merged commit 47c62d8 into rinafcode:main Aug 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Zustand selector hooks to messaging, notification, and volunteer stores

2 participants