Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Nov 13, 2024
1 parent f0bac61 commit 3680cb8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/core/src/react/stores/plate/createPlateStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3680cb8

Please sign in to comment.