Closed dihmeetree closed 7 months ago
Hi, glad you liked the library π€.
This library tries not to stray too far away from how Tanstack query does things. To do this, we might have to significantly deviate from what createQueries
returns by default, which is not really desirable since it would mean users having to adapt to non-standard behaviour that exists just for this library.
Personally, I just get over this through just de-structuring the query, like so:
const [fooQuery, barQuery] = $queries;
I don't think this is something I would be adding to this library, but thanks a lot for the suggestion!
Ahhhhh destructuring right! Sometimes I forget the basics haha.
This will work perfect! Thank you for the suggestion π
Thanks for this library first of all, it's great! π
Instead of doing this:
I'd like to be able to name the queries like so:
Right now i'm doing something like this on the frontend
I'd love to be able to access the queries directly like so:
and