docs: migration docs typo (3.8 -> 3.9, useViewportGridStore()) (#4675)

This commit is contained in:
Joeycho 2025-01-13 15:00:13 +01:00 committed by GitHub
parent 7a13c28eb3
commit 9b04020a87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);