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

Next.js · API reference · all subjects

functions: hooks

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

useActionState hook for pending state

The React useActionState hook can be used to show a loading indicator while executing a Server Function. The hook returns a pending boolean that indicates whether the action is in progress.

useEffect to invoke Server Actions on mount

The React useEffect hook can be used to invoke a Server Action when the component mounts or a dependency changes. This is useful for mutations that depend on global events or need to be triggered automatically.

Give your agent this brain