getStateFlowForModule

abstract fun getStateFlowForModule(module: Module<*, *>): StateFlow<ModuleState>?(source)

Returns the StateFlow for the given module's state, or null if the module is not registered in this store.

This is a non-suspend, direct accessor intended for use by module interface default implementations (e.g. Module.selectStateFlowNonSuspend) and for Swift/SKIE interop where suspend functions cannot be called.

Return

The StateFlow of the module's state, or null if not registered

Parameters

module

The module whose state flow to retrieve