最后produce返回新的对象(下一状态),而currentState任然保持不变。 基本例子. import produce from "immer" const baseState = [ { todo: ...
確定! 回上一頁