Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Nov 23, 2023
1 parent 9e764d3 commit 78dacdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/hooks/useResizeObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function useResizeObserver<T extends HTMLElement>(opts?: {
ref?: RefObject<T> | T | null | undefined
onResize?: (response: ResizeResponse) => void
debounceMs?: number
}): { ref: RefCallback<T> | RefObject<T> } & ResizeResponse {
}): { ref: RefCallback<T> } & ResizeResponse {
const [size, setSize] = useState<ResizeResponse>({})

const setSizeDebounced = useDebouncedCallback((value: ResizeResponse) => setSize(value), opts?.debounceMs ?? 100)
Expand Down

0 comments on commit 78dacdb

Please sign in to comment.