You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And once I move useEffect to ParentComponent, or useCarInfo hook, everything works as expected and isPending can become true, data/carInfo will have valid value.
The text was updated successfully, but these errors were encountered:
MenchieYoung
changed the title
deferFn child component calls run doesn't trigger data update in parent components
deferFn child component calls run in useEffect doesn't trigger data update
Jul 3, 2023
Not sure if this a issue in useAsync, or expected, we have encountered this problem:
The thing is, I can see the log
resp.data:
has valid output, but the log - isPending is always false, and error data is always undefined.And once I move useEffect to ParentComponent, or useCarInfo hook, everything works as expected and isPending can become true, data/carInfo will have valid value.
The text was updated successfully, but these errors were encountered: