Training Grounds
Force Refresh Does NothingBlack Belt
+50 Ki
Description

A dashboard panel shows the time it was last refreshed. Clicking the Refresh button should update the timestamp. The button appears to do nothing — the timestamp never changes

Anomaly

The panel shows "Last refreshed: Never" on load. Clicking Refresh repeatedly has no effect — the timestamp never updates to the current time.

Constraint
Fix only the handleRefresh function
The refreshKey state must change with each click — do not delete it
Hint

React uses Object.is to compare old and new state. If the new value is identical to the current value, React skips the update entirely — no re-render, no effect.

Consult the SenseiOnly for those truly stuck · Flip to reveal

React uses Object.is to compare old and new state. If the new value is identical to the current value, React skips the update entirely — no re-render, no effect.

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