Skip to content

ModuleScope type

Home > @rimitive/core > ModuleScope

Module scope - controls instance lifetime - ‘singleton’: One instance shared by all dependents (default) - ‘transient’: Fresh instance for each dependent

Signature:

export type ModuleScope = 'singleton' | 'transient';