@dxos/react-ui-menu
    Preparing search index...

    Function useMenuBuilder

    • 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.

      Parameters

      Returns MenuActions