new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Nuxt · API · all subjects

utilities/update-app-config

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

updateAppConfig utility function

updateAppConfig updates the app.config at runtime using deep assignment. Existing nested properties are preserved when updates are applied.

updateAppConfig example usage

Example showing updateAppConfig usage: import { updateAppConfig, useAppConfig } from '#imports' const appConfig = useAppConfig() // { foo: 'bar' } const newAppConfig = { foo: 'baz' } updateAppConfig(newAppConfig) console.log(appConfig) // { foo: 'baz' } This demonstrates how updateAppConfig modifies the runtime app config and the change is reflected in the useAppConfig composable.

updateAppConfig deep assignment behavior

updateAppConfig performs deep assignment on the app.config, meaning nested properties in the existing configuration are preserved unless explicitly overwritten.

Give your agent this brain