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
I'm trying to keep my application rendered with a global loading animation, as long as I can.
But when throwing that pending Promise first, no more requests are made and no more data is fetched from feathers server. Because that component isn't mounted yet, the useEffect() hook inside of figbirds useQuery() function is never called.
This is expected. useEffect is triggered after a component is rendered and committed. If it is suspended, it's not going to happen
Can we please rewrite figbird not to start that feathers request inside of a useEffect() hook, instead let's use e.g. the use() hook on a Promise, like here https://react.dev/reference/react/use ? That could fix it, right?
The text was updated successfully, but these errors were encountered:
I'm trying to keep my application rendered with a global loading animation, as long as I can.
But when throwing that pending Promise first, no more requests are made and no more data is fetched from feathers server. Because that component isn't mounted yet, the useEffect() hook inside of figbirds useQuery() function is never called.
On searching for issues, I found this: facebook/react#18749 (comment)
Can we please rewrite figbird not to start that feathers request inside of a useEffect() hook, instead let's use e.g. the use() hook on a Promise, like here https://react.dev/reference/react/use ? That could fix it, right?
The text was updated successfully, but these errors were encountered: