Repository navigation
Conversation
StepPopped mutated activity.steps in place via Array#pop, unlike every other reducer in this file which derives a new array. Build the popped steps as a new array instead so callers that still hold a reference to the previous activity aren't affected.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
Summary
Fix the
StepPoppedactivity reducer so it no longer mutates the previousactivity's
stepsarray in place.Motivation
In
core/src/activity-utils/makeActivityReducer.ts, every reducer derives anew array when changing
steps(e.g.StepPusheduses[...activity.steps, newRoute]), exceptStepPoppedWhat I have done
Test Plans
Test Results