FrontendComponentsActivityEditEditParticipantsTileEditParticipantTileEditParticipantTile.handlersFunctions
HandlePriceChange
Function: handlePriceChange()
[object Object]
Defined in: app/components/Activity/Edit/EditParticipantsTile/EditParticipantTile/EditParticipantTile.handlers.tsx:124
Handles the onChange event for a price input field, implementing a 600ms debounce.
This ensures that the server is only updated once the user has finished typing, reducing API traffic and unnecessary toast notifications.
Parameters
args
Configuration including event, current timeout, and state setters.
debounceTimeout
Timeout | null
e
ChangeEvent<HTMLInputElement>
saveAction
(price) => Promise<void>
setDebounceTimeout
(timeout) => void
setPrice
(price) => void
Returns
[object Object]