ModuleScope type
Home > @rimitive/core > ModuleScope
ModuleScope type
Section titled “ModuleScope type”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';