diff --git a/src/lib/ScrollContext.tsx b/src/lib/ScrollContext.tsx index 447db74e0e..3fa67eafd4 100644 --- a/src/lib/ScrollContext.tsx +++ b/src/lib/ScrollContext.tsx @@ -22,7 +22,7 @@ export function useScrollHandlers(): ScrollHandlers { return useContext(ScrollContext) } -type ProviderProps = {children: React.ReactNode} & ScrollHandlers +type ProviderProps = {children: React.ReactNode} & Partial // Note: this completely *overrides* the parent handlers. // It's up to you to compose them with the parent ones via useScrollHandlers() if needed.