Convenience wrapper around useMenuActions that creates the backing atom inline.
Pass a builder thunk and a dependency list — the hook memoizes Atom.make(build) and threads
it through useMenuActions. Saves the useMemo(() => Atom.make(...), deps) boilerplate when
the action graph is composed from local state (e.g. a toolbar driven by component state).
Read reactive state via get inside the builder; deps should hold only stable references.
Convenience wrapper around
useMenuActionsthat creates the backing atom inline. Pass a builder thunk and a dependency list — the hook memoizesAtom.make(build)and threads it throughuseMenuActions. Saves theuseMemo(() => Atom.make(...), deps)boilerplate when the action graph is composed from local state (e.g. a toolbar driven by component state).Read reactive state via
getinside the builder;depsshould hold only stable references.