T
TanStack4y ago
equal-aqua

Query for data after Opening Dropdown?

Does it make sense to query for the data after opening a dropdown, or would it just make sense for the data to be queried on mount?
2 Replies
optimistic-gold
optimistic-gold4y ago
You can do that however you like
ambitious-aqua
ambitious-aqua4y ago
Keep in mind that if you query the data when the drop-down is mounted, you would get requests even when the user does not interact with the drop-down. So it really depends on the usage.

Did you find this page helpful?