From 371978ba227c76d736a51cf9f43040c81aa5e325 Mon Sep 17 00:00:00 2001 From: MUI bot <2109932+Janpot@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:44:42 +0100 Subject: [PATCH] Update comment --- .../src/useLocalStorageState/useLocalStorageState.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/mui-utils/src/useLocalStorageState/useLocalStorageState.ts b/packages/mui-utils/src/useLocalStorageState/useLocalStorageState.ts index 70c6bf57ca4de7..b4dfb7bdbf967a 100644 --- a/packages/mui-utils/src/useLocalStorageState/useLocalStorageState.ts +++ b/packages/mui-utils/src/useLocalStorageState/useLocalStorageState.ts @@ -100,13 +100,7 @@ function useLocalStorageStateServer(): UseStorageStateHookResult { * to that value on page load instead of the specified initial value. * * Since the storage API isn't available in server-rendering environments, we - * return initialValue during SSR and hydration. - * - * Things this hook does different from existing solutions: - * - SSR-capable: it shows initial value during SSR and hydration, but immediately - * initializes when clientside mounted. - * - Sync state across tabs: When another tab changes the value in the storage area, the - * current tab follows suit. + * return null during SSR and hydration. */ function useLocalStorageStateBrowser( key: string | null,