博客:zustand

  • set 方法默认都是浅拷贝
  • 默认情况下,set 函数执行浅合并。如果您需要用新状态完全替换状态,请使用将replace 参数设置为true