previously this is something you’d either have to model completely outside of react with a one-off but ui-specific state machine, or you could have a mess of effects that trigger each other. useActionState lets you write it linearly like a reducer (but async and with side effects)

0

If you have a fediverse account, you can quote this note from your own instance. Search https://bsky.brid.gy/convert/ap/at://did:plc:fpruhuo22xkm5o7ttr2ktxdo/app.bsky.feed.post/3mf7m65ixd224 on your instance and quote it. (Note that quoting is not supported in Mastodon.)