You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within a certain action, we should have UoW-like possibilities for doing everything (in a transaction) or doing nothing (rollback to the previous state), so that we don't end up in an inconsistent state in between mutations.
Either perform all mutations or none (perform a rollback)
Don't allow mutating one element multiple times within the same transaction (~limit unnecessary version bumps)
The first step towards mimicking such behavior was done in #7348 as part of the applyTo logic, where either all increments are applied or none (while rolling back to prevElements). Check the details inside:
Within a certain action, we should have UoW-like possibilities for doing everything (in a transaction) or doing nothing (rollback to the previous state), so that we don't end up in an inconsistent state in between mutations.
The first step towards mimicking such behavior was done in #7348 as part of the
applyTo
logic, where either all increments are applied or none (while rolling back toprevElements
). Check the details inside:excalidraw/packages/excalidraw/change.ts
Line 1069 in c1a3b89
The text was updated successfully, but these errors were encountered: