Major Changes
- ae9a465: useFullscreen hook rewrite
-
Before:
const { element, exit, isEnabled: Boolean(document[fullscreenControls.fullscreenEnabled]), isFullscreen, //@deprecated onChange, //@deprecated onError, request, toggle, } = useFullscreen({ onChange, onError, options, });
-
After
const { isFullscreenAvailable, isFullscreenEnabled, fullscreenElement, enableFullscreen, disableFullscreen, toggleFullscreen } = useFullscreen({ target?: HTMLElement, onChange: () => {}, onError: (error) => {}, options : fullscreenoptions })
-