Clean up selected data for recording (#10537)

This commit is contained in:
Nicolas Mowen
2024-03-19 14:56:38 -06:00
committed by GitHub
parent f835e86df1
commit ab6bac1d2c
5 changed files with 48 additions and 53 deletions

View File

@@ -2,7 +2,7 @@ import { useCallback, useMemo } from "react";
import { useLocation, useNavigate } from "react-router-dom";
import { usePersistence } from "./use-persistence";
export function useOverlayState<S extends string>(
export function useOverlayState<S>(
key: string,
defaultValue: S | undefined = undefined,
): [S | undefined, (value: S, replace?: boolean) => void] {