refactor: recreate collection and global hotkey contexts as store (using zustand)

This commit is contained in:
Sonny
2024-11-06 23:06:21 +01:00
committed by Sonny
parent 8bd87b5bba
commit 861906d29b
27 changed files with 247 additions and 148 deletions

26
pnpm-lock.yaml generated
View File

@@ -125,6 +125,9 @@ importers:
reflect-metadata:
specifier: ^0.2.2
version: 0.2.2
zustand:
specifier: ^5.0.1
version: 5.0.1(@types/react@18.3.12)(react@18.3.1)
devDependencies:
'@adonisjs/assembler':
specifier: ^7.8.2
@@ -5115,6 +5118,24 @@ packages:
engines: {node: '>=8.0.0'}
hasBin: true
zustand@5.0.1:
resolution: {integrity: sha512-pRET7Lao2z+n5R/HduXMio35TncTlSW68WsYBq2Lg1ASspsNGjpwLAsij3RpouyV6+kHMwwwzP0bZPD70/Jx/w==}
engines: {node: '>=12.20.0'}
peerDependencies:
'@types/react': '>=18.0.0'
immer: '>=9.0.6'
react: '>=18.0.0'
use-sync-external-store: '>=1.2.0'
peerDependenciesMeta:
'@types/react':
optional: true
immer:
optional: true
react:
optional: true
use-sync-external-store:
optional: true
snapshots:
'@adonisjs/ace@13.3.0':
@@ -10181,3 +10202,8 @@ snapshots:
validator: 13.12.0
optionalDependencies:
commander: 9.5.0
zustand@5.0.1(@types/react@18.3.12)(react@18.3.1):
optionalDependencies:
'@types/react': 18.3.12
react: 18.3.1