If I understand (and appreciate) the purpose of useTransition
correctly, it's to avoid the intermediate "loading" state, as expressed in the example from the docs:
The "Loading profile..." text doesn't appear with useTransition
But this doesn't seem to work when there's a useEffect
hook in the mix.
Here's an example taken from this github issue on the same topic (though slightly different focus)
There's a "loading greeting" text that appears here.
Is useEffect incompatible with useTransition?
Is it possible to do away with the "loading greeting" text that appears in the second example?