Multiple useQuery inside defineQuery / granular cache invalidation #235
-
Hello, Let's say I want to implement a shopping cart with items, totals, shipping methods, coupons, etc in its state with a couple of mutations like add / remove item, update quantity, choose shipping method, etc. Since I don't want to fetch the whole state on every mutation (which might be costly), I'd like to organize it as separate queries inside my main Is it possible to have multiple Is this a good approach or am I overthinking this and I should just optimize this on the server side instead ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, you can have multiple use query within one define query! |
Beta Was this translation helpful? Give feedback.
Yes, you can have multiple use query within one define query!