EtherealEngine / etherealengine

iR Engine - Bringing us together on the open social spatial web. 🤖 🚀 👓 🕹ī¸ 🧑đŸŋ‍🚀
https://etherealengine.org
Other
705 stars 248 forks source link

[Bug] ECS useQuery returns nothing for first render #9015

Open HexaField opened 11 months ago

hanzlamateen commented 11 months ago

I think you have to check for status: 'pending', because this is what you get as the page is rendered.

Following are the possible values of status: 'pending' | 'success' | 'error'

HexaField commented 11 months ago

I think you have to check for status: 'pending', because this is what you get as the page is rendered.

Following are the possible values of status: 'pending' | 'success' | 'error'

This is for ECS hooks, not feathers hooks. Feathers query hook is internal and should not be used directly.