From 3680cb81b089ede36bb8a2bcca40e2c1c607543a Mon Sep 17 00:00:00 2001 From: zbeyens Date: Wed, 13 Nov 2024 19:52:09 +0100 Subject: [PATCH] fix --- packages/core/src/react/stores/plate/createPlateStore.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/core/src/react/stores/plate/createPlateStore.ts b/packages/core/src/react/stores/plate/createPlateStore.ts index cbbfd1b164..5abfff443b 100644 --- a/packages/core/src/react/stores/plate/createPlateStore.ts +++ b/packages/core/src/react/stores/plate/createPlateStore.ts @@ -93,10 +93,6 @@ export const usePlateEditorStore = ( // Try to fetch the store from a Plate provider const localStore = usePlateStore(id).store({ warnIfNoStore: false }) ?? null; - /** - * To preserve hook order, only use `localStore` if it was present on first - * render. This lets us call `usePlateControllerEditorStore` conditionally. - */ const [localStoreExists] = React.useState(!!localStore); // If no store was found, try to fetch the store from a PlateController