myanmarking
09/29/2021, 2:25 PMZach Klippenstein (he/him) [MOD]
09/29/2021, 4:26 PMmyanmarking
09/29/2021, 4:28 PMZach Klippenstein (he/him) [MOD]
09/29/2021, 4:48 PMmyanmarking
09/29/2021, 4:53 PMCasey Brooks
09/29/2021, 4:54 PMCasey Brooks
09/29/2021, 4:55 PM@Composable
, and it works just fine. If the input to that function reads a State
, updates to the state will be reflected just as expectedmyanmarking
09/29/2021, 4:55 PMmyanmarking
09/29/2021, 4:56 PMmyanmarking
09/29/2021, 4:56 PMZach Klippenstein (he/him) [MOD]
09/29/2021, 5:06 PMZach Klippenstein (he/him) [MOD]
09/29/2021, 5:08 PMModifier.composed
– this doesn’t require the creator to call your function in a composable (which can be useful if you want to extract complicated modifier creation out to a state holder, for example), and also ensures that the composition context the modifier uses will be more accurate since it won’t actually be composed until the last minute before the modifier is actually applied to a node.