message: enhance: wrap updateState with useCallback in useStorageState
diff: -import { useState } from 'react';
  +import { useState, useCallback } from 'react';
  import useUpdateEffect from '../useUpdateEffect';
  export interface IFuncUpdater<T> {
  @@ -41,7 +41,8 @@ export function createUseStorageState(nullishStorage: Storage | null) {
  return defaultValue;
  }
  - function updateState(value?: T | IFuncUpdater<T>) {
  + const updateState = useCallback(
  + (value?: T | IFuncUpdater<T>) => {
  if (typeof value === 'undefined') {
  storage.removeItem(key);
  setState(undefined);
  @@ -54,7 +55,9 @@ export function createUseStorageState(nullishStorage: Storage | null) {
  storage.setItem(key, JSON.stringify(value));
  setState(value);
  }
  - }
  + },
  + [key],
  + );
  return [state, updateState];
  }
  