clean up logs
This commit is contained in:
parent
9b8348dc88
commit
0a4426ebbc
1 changed files with 0 additions and 4 deletions
|
@ -100,8 +100,6 @@ export const createDataSet = <T extends Record<string, any>>(data: Accessor<T[]>
|
||||||
});
|
});
|
||||||
|
|
||||||
const apply = (data: T[], mutations: Mutation[]) => {
|
const apply = (data: T[], mutations: Mutation[]) => {
|
||||||
console.log('APPLY', data, mutations);
|
|
||||||
|
|
||||||
for (const mutation of mutations) {
|
for (const mutation of mutations) {
|
||||||
const path = mutation.key.split('.');
|
const path = mutation.key.split('.');
|
||||||
|
|
||||||
|
@ -164,8 +162,6 @@ export const createDataSet = <T extends Record<string, any>>(data: Accessor<T[]>
|
||||||
const next = data();
|
const next = data();
|
||||||
const nextValue = apply(deepCopy(next), untrack(() => mutations()));
|
const nextValue = apply(deepCopy(next), untrack(() => mutations()));
|
||||||
|
|
||||||
console.log('EFFECT IS CALLED');
|
|
||||||
|
|
||||||
setState('value', nextValue);
|
setState('value', nextValue);
|
||||||
setState('snapshot', next);
|
setState('snapshot', next);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue