Kind: Function
Source: atloria-monorepo/packages/ui-core/src/components/api-explorer/permalink.ts
Read a fragment back, or null when it is not one of ours.
Never throws: a hash is attacker-supplied text, it can be a leftover from another page, and a malformed one must leave the playground working exactly as it would with no hash at all.
Signature
tsfunction decodePermalink(hash: string): PermalinkState | null
Parameters
| Name | Type |
|---|---|
hash | string |
Returns: PermalinkState | null
Was this page helpful?