← Back to Vue.js
Code Review
Code that already looks finished, and is wrong. Find the defect before you submit — the tests it came with all pass.
Review: a cart total that never moves
intermediatereviewThe cart composable below passes its tests. Add an item after setup and the total stays where it was. One line decides whether this is a snapshot or a formula.
Review: a watcher that watched a string once
intermediatereviewThe search composable below passes its tests. Type into it and nothing ever fires. The bug is in what got handed to watch — find it.
Review: a listener that outlives its component
advancedreviewThe keyboard-shortcut composable below passes its tests. Unmount the component and the shortcut keeps firing into the void. Find what setup forgot to undo.