Javascript – useTransition's isPending not awaiting API call completion before changing to false
I am trying to resolve the issue with the useTransition hook. I have a button and onClick of it fires a function that makes an API call. The issue hee is that the isPending from the useTransition hook is set…