observeCurrentDb

abstract fun <T> observeCurrentDb(query: (MeshtasticDatabase) -> Flow<T>): Flow<T>(source)

Re-latches query whenever the active database changes. Production also recovers a wedged Room pool.