Alan Lee
08/31/2022, 3:44 PMhfhbd
08/31/2022, 3:50 PMAlan Lee
08/31/2022, 3:57 PMhfhbd
08/31/2022, 4:01 PMnull
? just use this variable normally, either as property, mutableState or as key for remember.Alan Lee
08/31/2022, 4:11 PMMark Murphy
08/31/2022, 5:03 PMbut only need to be used the very first time and cleared until it is set with a valid value laterYou have no way of knowing what other recompositions might be needed between "the very first time" and "later". For all you know, the function will be recomposed one frame after "the very first time" and X1 effectively never appears.
Alan Lee
08/31/2022, 5:05 PMMark Murphy
08/31/2022, 5:47 PM