Skip to content

Commit

Permalink
docs: fix code block formatting for usePreviewMode (#26303)
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Mar 17, 2024
1 parent 68f7d4d commit cfd34ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/3.api/2.composables/use-preview-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export function useMyPreviewMode () {
return !!route.query.customPreview
}
});
}```
}
```

### Modify default state

Expand All @@ -40,7 +41,7 @@ const { enabled, state } = usePreviewMode({
})
```

::alert{icon=👉}
::note
The `getState` function will append returned values to current state, so be careful not to accidentally overwrite important state.
::

Expand Down

0 comments on commit cfd34ec

Please sign in to comment.