Skip to content

Commit

Permalink
fix: I think this broke everything
Browse files Browse the repository at this point in the history
  • Loading branch information
mbifulco committed Jan 4, 2025
1 parent a4d7dcc commit 52223c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useLocalStorage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const useLocalStorageSubscribe = (callback: (event: StorageEvent) => void) => {

const getLocalStorageServerSnapshot = () => {
// throw Error('useLocalStorage is a client-only hook');
return '{}';
return null;
};

export function useLocalStorage<T>(key: string, initialValue: T) {
Expand Down

0 comments on commit 52223c6

Please sign in to comment.