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 Updated

File contents

asmyshlyaev177/state-in-url commit 77a160233d

Frequently asked questions

npx get-skill add asmyshlyaev177/input-handling