Function

simulateHotReload

Simulates hot reload of all current compositions by disposing all composed content and restarting compositions.

simulateHotReload

Source set: 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

context context for disposal.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: