useDoubleClick takes click and doubleClick, while every other callback option starts with on, including onClick in useLongPress. useList, useMap and useSet name their first parameter initialState, while useBooleanState, useCounter, useInputState and useToggle use initialValue.
useDoubleClick: click → onClick, doubleClick → onDoubleClick, and delay → delayMs. These are option keys, so this breaks existing code. Shipping them together lets users migrate once.
useList, useMap and useSet: initialState → initialValue. It is a positional parameter, so only types and docs change.
Update types, docs, and tests.
Waits for #532.
useDoubleClicktakesclickanddoubleClick, while every other callback option starts withon, includingonClickinuseLongPress.useList,useMapanduseSetname their first parameterinitialState, whileuseBooleanState,useCounter,useInputStateanduseToggleuseinitialValue.useDoubleClick:click→onClick,doubleClick→onDoubleClick, anddelay→delayMs. These are option keys, so this breaks existing code. Shipping them together lets users migrate once.useList,useMapanduseSet:initialState→initialValue. It is a positional parameter, so only types and docs change.Update types, docs, and tests.
Waits for #532.