4 ms·You should check out immer for that use case ("modifying" an immutable object with imperative code).by jcparkyn 3y agoYou should check out immer for that use case ("modifying" an immutable object with imperative code).