You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently generated queries are callable and have additional keys for fetcher and getKey, however there is no type that defines this in a generic way so that multiple queries can be referenced in shared logic. We are using a CMS and get data based on parameters that come from the CMS, sometimes we need to prefetch queryA and queryB, other times it's queryA and queryC. Right now we have to use any type for the loop that prefetches all these queries for SSR.
Generated code should reference a generic type, something like
Currently generated queries are callable and have additional keys for fetcher and getKey, however there is no type that defines this in a generic way so that multiple queries can be referenced in shared logic. We are using a CMS and get data based on parameters that come from the CMS, sometimes we need to prefetch queryA and queryB, other times it's queryA and queryC. Right now we have to use
any
type for the loop that prefetches all these queries for SSR.Generated code should reference a generic type, something like
then generated queries would have
export const useMyQueryName: GeneratedQuery<MyQueryData> = ...
These types are probably off but you get the idea, queries should reference a shared type
The text was updated successfully, but these errors were encountered: