From c58aad935bb2ffc3077e6117eecb8220ce72ad0d Mon Sep 17 00:00:00 2001 From: "dongqiang.02" Date: Tue, 23 Jul 2024 16:29:37 +0800 Subject: [PATCH] chore: fix typo --- packages/react/src/components/BatchProvider/useQueue.ts | 2 +- packages/react/src/components/StoreUpdater/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react/src/components/BatchProvider/useQueue.ts b/packages/react/src/components/BatchProvider/useQueue.ts index 06d9e235..4170fa7b 100644 --- a/packages/react/src/components/BatchProvider/useQueue.ts +++ b/packages/react/src/components/BatchProvider/useQueue.ts @@ -43,7 +43,7 @@ export function useQueue(runQueue: (items: QueueItem[]) => 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]); diff --git a/packages/react/src/components/StoreUpdater/index.tsx b/packages/react/src/components/StoreUpdater/index.tsx index 120db624..cac8df0e 100644 --- a/packages/react/src/components/StoreUpdater/index.tsx +++ b/packages/react/src/components/StoreUpdater/index.tsx @@ -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`). */