Slackbot
06/23/2026, 8:25 AMshikasd
06/23/2026, 7:47 PMprovidersInvalid flag in Composer)shikasd
06/24/2026, 11:31 AMshikasd
06/24/2026, 11:32 AMshikasd
06/24/2026, 12:46 PMChuck Jazdzewski [G]
06/24/2026, 3:55 PMskipping state. If skipping is false the function will not be skipped regardless of which parameters are passed to it. When a static composition local is changed then skipping will return false for all children of the CompositionLocalProvider call. The recompose states are not invalidated as there is no need to. They will execute regardless as skipping is disabled until CompositionLocalProvider returns (technically, until endProvider() is called).Chuck Jazdzewski [G]
06/25/2026, 3:52 PMshouldExecuted to determine whether it should execute its content or skip. Non-skippable functions (e.g. inline composable functions or function explicitly marked non-skippable with @NonSkippableComposable) do not; they never skip.
Changing the value of a static composition local will cause the map storing the composition locals to change. When the map changes providersInvalid is set to true until the corresponding end is called (i.e. the function returns). While providersInvalid is true shouldExecute will return true.
This means that changing the value of a static composition local is possible but is costly. The intent is that static composition locals never (or nearly never) change. However, if a value changes rarely then using a static local may be less costly overall than a dynamic local as the cost of tracking reads of a dynamic local has a cost too which statics do not pay.shikasd
06/27/2026, 8:00 PMshikasd
06/28/2026, 8:57 AM