Load/render workspace alignment (#182)
* docs: plan load render workspace alignment * fix: normalize workspace status hydration * fix: avoid duplicate backlog hydration load * refactor: use sprint store active story * refactor: migrate solo to workspace store * chore: stabilize verification ignores
This commit is contained in:
parent
98ee05d458
commit
3b5cee823c
28 changed files with 1845 additions and 577 deletions
|
|
@ -8,9 +8,11 @@ import { debugProps } from '@/lib/debug'
|
|||
// De voorganger (stores/product-store.ts) wordt in Story 8 (T-876) verwijderd.
|
||||
export function SetCurrentProduct({ id, name }: { id: string; name: string }) {
|
||||
useEffect(() => {
|
||||
useProductWorkspaceStore.getState().setActiveProduct({ id, name })
|
||||
useProductWorkspaceStore
|
||||
.getState()
|
||||
.setActiveProduct({ id, name }, { load: false, preserveSelection: true })
|
||||
return () => {
|
||||
useProductWorkspaceStore.getState().setActiveProduct(null)
|
||||
useProductWorkspaceStore.getState().setActiveProduct(null, { load: false })
|
||||
}
|
||||
}, [id, name])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue