Lodash: keep React debounce stable and cancel on cleanup
Summary Keep one debouncer for each callback lifetime, pass the latest input as an argument, and cancel pending calls when that lifetime ends. Use trailing-only input submission with leading: false, trailing: true
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread lodash-react-stable-debounce-cancel-cleanup and help me try it