Nuxt/docs/content/3.api/1.composables/update-app-config.md

18 lines
373 B
Markdown
Raw Normal View History

# `updateAppConfig`
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"}