Skip to content

Commit

Permalink
Update useLocalStorageState.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Mar 12, 2024
1 parent 371978b commit e217b3d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ type UseStorageStateHookResult = [
React.Dispatch<React.SetStateAction<string | null>>,
];

const serverValue: UseStorageStateHookResult = [null, () => {}];

function useLocalStorageStateServer(): UseStorageStateHookResult {
return React.useState<string | null>(null);
return serverValue;
}

/**
Expand Down

0 comments on commit e217b3d

Please sign in to comment.