docs: migration docs typo (3.8 -> 3.9, useViewportGridStore()) (#4675)
This commit is contained in:
1 parent
7a13c28eb3
commit
9b04020a87
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user