Skip to content

decodePermalink

reference
1 min readUpdated

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

ts
function decodePermalink(hash: string): PermalinkState | null

Parameters

NameType
hashstring

Returns: PermalinkState | null

Was this page helpful?

Download as PDF