To catch bugs where we pass the wrong state to an atom faster, it would be nice if we could pass a validator function to the atom's options table. For performance reasons this should only run in dev mode, _G.__DEV__ like react.
atom("John", {
validate = t.string,
})