UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

12 lines (10 loc) 420 B
/** * A hook that wraps the event listener attachment * * Make sure your callback is stable (doesn't change every render) * This can easily be achieved by wrapping it in a useCallback() and using it inside the useResizeCallbackWrapper * * @param callback Called when the window resizes */ declare const useResizeCallbackWrapper: (callback: (event: UIEvent) => void) => void; export { useResizeCallbackWrapper };