mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 06:31:27 +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
|
return !!route.query.customPreview
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}```
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Modify default state
|
### 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.
|
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