NetworkMockDataStoreDelegate
The process-level DataStoreDelegate for the network mock module.
This single top-level instance is shared by both devview-networkmock (UI) and devview-networkmock-ktor (Ktor plugin), ensuring that both modules operate on the same underlying DataStore instance regardless of which one accesses it first.
Ownership
Initialised by:
devview-networkmock— the UI module drives initialisation viaModule.initModuleafterrememberModuleshas called com.worldline.devview.utils.RequiresDataStore.initDataStoreRead by:
devview-networkmock-ktor— the Ktor plugin reads the DataStore instance via DataStoreDelegate.get at request interception time, which is always after Composition has run
Why a top-level val
Both devview-networkmock and devview-networkmock-ktor depend on devview-networkmock-core but do not depend on each other. A top-level val in core is the only location both modules can reference without introducing a circular dependency.