useQueries for parallel queries that are based on a dependent list of unknown length. Normally dependent queries would use the enabled option to specify whether or not the prerequisite data is ready to allow the query to run, but that's not an option at the top level for useQueries. I saw on the github forums that you can pass an empty array to it to have it do a no-op but my concern with that is that the not yet loaded state then looks identical to an empty list response from the providing query. While it is possible to look at the loading state of the providing query, my concern is that it would be easy to pass the array result of the dependent useQueries to another context elsewhere and lose that information if you forget to also send the dependent query loading state with it as well as it would just be an array without any state information. With a non parallel dependent query the state of the query is encoded in the query result while the providing query is still loading so I think not having that state information coupled with the useQueries result could easily lead to mistakes where the loading state is confused with an empty response state.https://x.com/tan_stack/status/2031128535470104577?s=20
dry-scarlet · 9h ago
https://x.com/powersync_/status/2010721010006552775?s=20
dry-scarlet · 2mo ago
You can now submit your website/app/project to http://TanStack.com 's new showcase and have it seen by the TanStack community! - Global showcase browser - Per-library filters - Category filters Submit here: https://tanstack.com/showcase/submit View all here: https://tanstack.com/showcase
dry-scarlet · 3mo ago