Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(frontend): migrate stores to Composition API #396

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shyim
Copy link
Member

@shyim shyim commented Feb 27, 2025

This commit refactors all frontend stores to use the Composition API with defineStore(). The changes include:

  • Converting class-style stores to use ref(), computed(), and function-based stores
  • Simplifying state management and reducing boilerplate
  • Improving type inference and readability
  • Updating import statements and store logic
  • Removing unnecessary state management complexity

The stores updated include:

  • alert
  • auth
  • darkMode
  • dashboard
  • extension
  • notification
  • organization
  • shop

This commit refactors all frontend stores to use the Composition API with `defineStore()`. The changes include:
- Converting class-style stores to use `ref()`, `computed()`, and function-based stores
- Simplifying state management and reducing boilerplate
- Improving type inference and readability
- Updating import statements and store logic
- Removing unnecessary state management complexity

The stores updated include:
- alert
- auth
- darkMode
- dashboard
- extension
- notification
- organization
- shop
@shyim shyim requested a review from pumpi February 27, 2025 19:38
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.

1 participant