Skip to content

Commit

Permalink
docs: migration docs typo (3.8 -> 3.9, useViewportGridStore()) (#4675)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joeycho authored Jan 13, 2025
1 parent 7a13c28 commit 9b04020
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ stateSyncService.store({

```js
import { useViewportGridStore } from '../stores/useViewportGridStore';
const { viewportGridState, setViewportGridState } = useViewportGridStore();
const { viewportGridState, setViewportGridState } = useViewportGridStore.getState();
const gridState = viewportGridState[storeId];
// ...to update
setViewportGridState(storeId, newGridState);
Expand Down

0 comments on commit 9b04020

Please sign in to comment.