# decodePermalink

**Kind:** Function

**Source:** [`atloria-monorepo/packages/ui-core/src/components/api-explorer/permalink.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/ui-core/src/components/api-explorer/permalink.ts#L163)

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

| Name | Type |
|---|---|
| `hash` | `string` |

**Returns:** `PermalinkState | null`
