chore: fix typo

This commit is contained in:
dongqiang.02
2024-07-24 16:18:04 +08:00
parent 66c3c77f39
commit c58aad935b
2 changed files with 2 additions and 2 deletions
@@ -43,7 +43,7 @@ export function useQueue<T>(runQueue: (items: QueueItem<T>[]) => void) {
queue.reset();
}
// Beacuse we're using reactive state to trigger this effect, we need to flip
// Because we're using reactive state to trigger this effect, we need to flip
// it back to false.
setShouldFlush(false);
}, [shouldFlush]);
@@ -1,5 +1,5 @@
/*
* This component helps us to update the store with the vlues coming from the user.
* This component helps us to update the store with the values coming from the user.
* We distinguish between values we can update directly with `useDirectStoreUpdater` (like `snapGrid`)
* and values that have a dedicated setter function in the store (like `setNodes`).
*/