Skip to content

Commit

Permalink
fix: update useLocalStorageState docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chenwenqi1 committed Nov 22, 2024
1 parent c7bb04c commit eb62422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/hooks/src/useLocalStorageState/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type SetState<S> = S | ((prevState?: S) => S);

interface Options<T> {
defaultValue?: T | (() => T);
listenStorageChange?: boolean;
serializer?: (value: T) => string;
deserializer?: (value: string) => T;
onError?: (error: unknown) => void;
Expand Down
1 change: 1 addition & 0 deletions packages/hooks/src/useLocalStorageState/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type SetState<S> = S | ((prevState?: S) => S);

interface Options<T> {
defaultValue?: T | (() => T);
listenStorageChange?: boolean;
serializer?: (value: T) => string;
deserializer?: (value: string) => T;
onError?: (error: unknown) => void;
Expand Down

0 comments on commit eb62422

Please sign in to comment.