Skip to main content
cngx-src documentation

injectCommands

Functioncommon/commandv0.1.0

projects/common/command/provide-commands.ts

Description#

Merges every registered CNGX_COMMAND_SOURCE into one reactive Signal<readonly CngxCommand[]>. The merge carries an explicit equal (length + per-command identity) so re-emitting an identical set - the same command references in the same order - does not produce a fresh array and cascade the downstream match computed().

Must run in an injection context.

Signature#

injectCommands()

Returns#

Signal