simulateHotReload

Function

Common
@TestOnly public fun simulateHotReload(context: Any): Unit

Simulates hot reload of all current compositions by disposing all composed content and restarting compositions. Calling this method switches recomposer into hot reload mode. Test-only API, not for use in production.

Parameters

contextcontext for disposal.