rooks@7.0.0-alpha.0
Pre-release
Pre-release
github-actions
released this
17 Aug 12:58
·
894 commits
to main
since this release
Major Changes
- 9ca2be6: 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 })
-