We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
useSessionStorage
1 parent 394589e commit c8f9bdaCopy full SHA for c8f9bda
index.d.ts
@@ -225,6 +225,11 @@ declare module "@uidotdev/usehooks" {
225
}
226
): "idle" | "loading" | "ready" | "error";
227
228
+ export function useSessionStorage<T>(
229
+ key: string,
230
+ initialValue: T
231
+ ): [T, React.Dispatch<React.SetStateAction<T>>];
232
+
233
export function useSet<T>(values?: T[]): Set<T>;
234
235
export function useSpeech(text: string, options?: SpeechOptions): SpeechState;
0 commit comments