notify Objects Initialized
fun notifyObjectsInitialized()
Content copied to clipboard
Notify the snapshot that all objects created in this snapshot to this point should be considered initialized. If any state object is are modified passed this point it will appear as modified in the snapshot and any applicable SnapshotWriteObserver will be called for the object and the object will be part of the a set of mutated objects sent to any applicable SnapshotApplyObserver.
Unless notifyObjectsInitialized is called, state objects created in a snapshot are not considered modified by the snapshot even if they are modified after construction.
Compose uses this between phases of composition to allow observing changes to state objects create in a previous phase.