fix: Final TypeScript fixes
Signed-off-by: Hermes Agent <hermes@nosuchhost>
This commit is contained in:
@@ -47,4 +47,4 @@ export const useResizeObserver = (
|
||||
|
||||
return () => observer.disconnect()
|
||||
}, [ref, onResize])
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ const INITIAL_STATE: CanvasState = {
|
||||
export const useCanvasStore = create<CanvasState>()(
|
||||
devtools(
|
||||
persist(
|
||||
(set, get) => ({
|
||||
(set) => ({
|
||||
...INITIAL_STATE,
|
||||
setCam: (x: number, y: number) => set({ camX: x, camY: y }),
|
||||
setZoom: (zoom: number) => set({ zoom }),
|
||||
|
||||
@@ -36,4 +36,4 @@ export const destroyCRDT = () => {
|
||||
doc?.destroy()
|
||||
doc = null
|
||||
provider = null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user