Home > @uniformdev/mesh-sdk-react > useRequestParameter
useRequestParameter() function
Hook to make it simple to read and write a specific request query string parameter by name, instead of supporting multiple values in an array like native dispatch.
NOTE: if multiple values are added for the named parameter, this hook will bind to the FIRST instance of the parameter and leave the other values alone.
Signature:
Parameters
Parameter | Type | Description |
---|---|---|
paramName | string |
Returns:
{ value: string; update: (value: string) => void; }