Single source of truth means each piece of data is stored in exactly one place, and everything that needs it reads from there — rather than keeping multiple copies that can drift out of sync.
The problem it prevents: duplicated, diverging state
() {
[user, setUser] = ({ : });
[displayName, setDisplayName] = ();
() {
({ ...user, : newName });
}
}
