Adds a rule to detect potential troubling scenarios where a lambda parameter in a composable is used directly in a restartable effect (e.g. LaunchedEffect/DisposableEffect), without using rememberUpdatedState or using the param as a key to the effect.
This currently bit me in the ass at work, so adding a basic rule for just lambdas (for now) to tackle this.
Adds a rule to detect potential troubling scenarios where a lambda parameter in a composable is used directly in a restartable effect (e.g. LaunchedEffect/DisposableEffect), without using
rememberUpdatedState
or using the param as a key to the effect.This currently bit me in the ass at work, so adding a basic rule for just lambdas (for now) to tackle this.