https://kotlinlang.org logo
Title
t

Trevor Stone

03/22/2023, 8:31 PM
Will take a look, thank you! I know in molecule it uses the GlobalWriteObserver but I haven't wrapped my head around it yet
val snapshotHandle =
                Snapshot.registerGlobalWriteObserver {
                    if (!applyScheduled) {
                        applyScheduled = true
                        launch {
                            applyScheduled = false
                            Snapshot.sendApplyNotifications()
                        }
                    }
                }