<Input
changeAction={async text =>
await save(text);
setText(text);
}
/>
And the input is immediate, which the async is deferred.
<Input
changeAction={async text =>
await save(text);
setText(text);
}
/>
And the input is immediate, which the async is deferred.
#MachineRobo #マシンロボ
#RevengeofCronos #クロノスの大逆襲
#BattleHackers #バトルハッカーズ
#ChallengeoftheGobots #RoboMachine
#MachineMen #RockLords
#Bandai #バンダイ #Tonka #GoBots
#ForeverDestron
#MachineRobo #マシンロボ
#RevengeofCronos #クロノスの大逆襲
#BattleHackers #バトルハッカーズ
#ChallengeoftheGobots #RoboMachine
#MachineMen #RockLords
#Bandai #バンダイ #Tonka #GoBots
#ForeverDestron
Example would be
<Switch changeAction={updatePreference}>
If the transition/optimistic was baked in, you could pass in
Example would be
<Switch changeAction={updatePreference}>
If the transition/optimistic was baked in, you could pass in
<Input changeAction={setText} />
Now there’s no useOptimistic or startTransition for the basic case of using a text input.
<Input changeAction={setText} />
Now there’s no useOptimistic or startTransition for the basic case of using a text input.