mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-30 22:22:02 +02:00
Merge main into proxy branch (formatting and docs)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -19,9 +19,7 @@ function emptyStore<M extends ModelMap>(keys: (keyof M)[]): StoreData<M> {
|
||||
return data;
|
||||
}
|
||||
|
||||
export function createModelStore<M extends ModelMap>(
|
||||
modelTypes: (keyof M & string)[],
|
||||
) {
|
||||
export function createModelStore<M extends ModelMap>(modelTypes: (keyof M & string)[]) {
|
||||
const dataAtom = atom<StoreData<M>>(emptyStore<M>(modelTypes));
|
||||
|
||||
/** Apply a single upsert or delete to the store. */
|
||||
|
||||
Reference in New Issue
Block a user