Returns a callback that clears the url hash, keeping the path and query string.
const clearUrlHash = useClearUrlHash();const handleClose = useCallback(() => { setOpen(false); clearUrlHash();}, [clearUrlHash]); Copy
const clearUrlHash = useClearUrlHash();const handleClose = useCallback(() => { setOpen(false); clearUrlHash();}, [clearUrlHash]);
Returns a callback that clears the url hash, keeping the path and query string.