Skip to content

Commit

Permalink
fix: ref
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKrieger committed Sep 20, 2024
1 parent 7820dd9 commit 07f5b5b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/hooks/useStickyRef.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { Dispatch, useCallback, useRef } from "react";

// this is like "useState", but persists and restores the state to the local storage key
// specified. For simplicity, it doesn't fully support setting the state with a function,
// as we can't always see the resulting value after the function is called.
export function useStickyRef<S>(
localStorageKey: string,
initialState: S,
Expand Down

0 comments on commit 07f5b5b

Please sign in to comment.