next
Version:
The React Framework
9 lines (8 loc) • 304 B
TypeScript
/**
* Run function with `scroll-behavior: auto` applied to `<html/>`.
* This css change will be reverted after the function finishes.
*/
export declare function disableSmoothScrollDuringRouteTransition(fn: () => void, options?: {
dontForceLayout?: boolean;
onlyHashChange?: boolean;
}): void;