message: fix(useLocalStorageState & useSessionStorageState): let getStoredValue function not run in ssr
diff: @@ -22,7 +22,12 @@ function useStorageState<T>(
  key: string,
  defaultValue?: StorageStateDefaultValue<T>,
  ): StorageStateResult<T> {
  + if (typeof window !== 'object') return [isFunction<IFuncUpdater<T>>(defaultValue) ? defaultValue() : defaultValue, () => {}];
  +
  const [state, setState] = useState<T | undefined>(() => getStoredValue());
  + useUpdateEffect(() => {
  + setState(getStoredValue());
  + }, [key]);
  function getStoredValue() {
  if (isFunction<IFuncStorage>(storage)) {
  @@ -58,10 +63,6 @@ function useStorageState<T>(
  }
  }
  - useUpdateEffect(() => {
  - setState(getStoredValue());
  - }, [key]);
  -
  return [state, updateState];
  }
  