Description

A filterable list shows a "Filter applied" notification whenever the user changes the filter input. The notification should only appear after the user has typed something — not when the page first loads.

Anomaly

The "Filter applied" notification appears immediately on page load before the user has typed anything in the filter box.

Constraint
Do not remove the useEffect or change its dependency on filter
Do not add useRef
Hint
Consult the SenseiOnly for those truly stuck · Flip to reveal

useEffect always fires on the initial render — check whether the value that triggered the effect actually represents real user input before acting on it.

Loading editor…
Correct Solution
Loading...
Expected OutputGoal State
Your OutputLive