ComposableInvalidationTraceTable

Classes that hold data from ComposeInvestigator.

This class is created as a singleton for every file, so be careful in production environments. (ComposeInvestigator is not recommended for production)

This class is automatically generated and managed at the compiler level in ComposeInvestigator, and you should be very careful about controlling this instance directly.

To get the instance of ComposableInvalidationTraceTable created in the current file, use currentComposableInvalidationTracer.

If a file is annotated with NoInvestigation or do not have any Composables, this class will not be instantiated in that file. If you use this class's APIs (including the currentComposableInvalidationTracer) without being instantiated, you will receive a unexpected behaviour.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Represents the unique key of the affected Composable and the compound key.

Properties

Link copied to clipboard

Returns all arguments that were affected by the value change. This is useful for debugging and testing purposes.

Link copied to clipboard

Returns a unique key for the current Composable. This is guaranteed to be the unique of the Composable function in all cases.

Link copied to clipboard

Returns the name of the current Composable, or you can define your own Composable name to use for ComposeInvestigator.

Functions

Link copied to clipboard
@TestOnly
fun reset()

Removes all arguments that were affected by the value change. This means that it also resets what information was held in the past.