Nuxt/docs/content/3.api/1.composables/update-app-config.md
2022-08-24 18:35:02 +02:00

21 lines
393 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# `updateAppConfig`
::StabilityEdge
::
Updates [app config](/guide/features/app-config) using deep assignment. Existing (nested) properties will be preserved.
**Usage:**
```js
const appConfig = useAppConfig() // { foo: 'bar' }
const newAppConfig = { foo: 'baz' }
updateAppConfig(newAppConfig)
console.log(appConfig) // { foo: 'baz' }
```
::ReadMore{link="/guide/features/app-config"}