useProjectsStore
Project management store.
Import
typescript
const projectsStore = useProjectsStore()State
| Property | Type | Default | Description |
|---|---|---|---|
projects | Project[] | [] | All user projects |
currentProject | Project | null | null | Currently selected project |
isLoading | boolean | false | Loading state |
Actions
| Action | Parameters | Description |
|---|---|---|
fetchProjects | — | Load all user projects |
setCurrentProject | project: Project | Set active project |
refreshCurrentProject | — | Refresh current project data |
Source
app/stores/projects.ts