Nuxt/docs/content/3.api/1.composables/update-app-config.md
2022-09-03 12:36:47 +02:00

373 B

updateAppConfig

Updates app config using deep assignment. Existing (nested) properties will be preserved.

Usage:

const appConfig = useAppConfig() // { foo: 'bar' }

const newAppConfig = { foo: 'baz' }

updateAppConfig(newAppConfig)

console.log(appConfig) // { foo: 'baz' }

::ReadMore{link="/guide/features/app-config"}