Migrate update step changes to diff (#14663)

This PR should fix optimistic rendering issues on step updates:
- compute a diff for trigger and steps on mutations
- build an util that applies that diff (built a more robust version from
https://github.com/AsyncBanana/micropatch)
- apply diff in cache
This commit is contained in:
Thomas Trompette
2025-09-23 18:41:26 +02:00
committed by GitHub
parent a5c47a60d0
commit 6ea7aea92b
31 changed files with 1545 additions and 518 deletions
@@ -37,7 +37,7 @@ export const getStepDefinitionOrThrow = ({
const selectedNodePosition = findStepPosition({
steps,
stepId: stepId,
stepId,
});
if (!isDefined(selectedNodePosition)) {
return undefined;