Loading the puzzle…
The puzzle IDE is built for a laptop or larger screen. You can read everything here, but selecting code is easier with a mouse and a wider window.
Interview question: design a reactive state system where an effect runs again
only when data it read has changed. One requirement: shortening an array by
assigning a smaller length must run again the effects that read the length,
iterated over the array, or read an index that was removed, but not effects
that only read indexes that are still there.
In packages/reactivity/src/dep.ts, trigger chooses which deps to run for a
change. Select the lines in trigger that choose the deps to run when an
array's length is assigned. Select the lines.
A range of lines in one file.
Each hint revealed before you solve takes 20 points off this puzzle's score.
Solve this puzzle to see the solution and a full explanation.
Select lines in the editor, then choose Select as answer below the editor.
No lines selected yet.