UNPKG

@empathyco/x-components

Version:
25 lines (14 loc) 709 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [RelatedPromptsActions](./x-components.relatedpromptsactions.md) &gt; [setUrlParams](./x-components.relatedpromptsactions.seturlparams.md) ## RelatedPromptsActions.setUrlParams() method Checks if the URL has params on it and then updates the state with these values. **Signature:** ```typescript setUrlParams(urlParams: UrlParams): void; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | urlParams | [UrlParams](./x-components.urlparams.md) | List of params from the url. | **Returns:** void