Input Handling

Reconcile instant local input feedback with URL write throttling. setState updates internal state synchronously (instant re-render); setUrl is throttled and asynchronous (URL catches up on the next tick). Use this skill for text inputs, search boxes, sliders, range pickers, and any control that fires many updates per second where binding setUrl directly to onChange causes perceived lag or wasted URL writes.

asmyshlyaev177 77a1602 6.5 KB Updated

File contents

asmyshlyaev177/state-in-url/tree/main/skills/input-handling commit 77a160233d

Frequently asked questions

npx skillmds@latest add asmyshlyaev177/input-handling