mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs: fix code block formatting for usePreviewMode
(#26303)
This commit is contained in:
parent
68f7d4df8b
commit
cfd34ec234
@ -24,7 +24,8 @@ export function useMyPreviewMode () {
|
||||
return !!route.query.customPreview
|
||||
}
|
||||
});
|
||||
}```
|
||||
}
|
||||
```
|
||||
|
||||
### Modify default state
|
||||
|
||||
@ -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.
|
||||
::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user