Consolidate return type signatures of framework hooks #1974
davidhousedev
started this conversation in
Ideas + Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently,
useQuery
has a wonderful return type that allows us to discriminate between a query that errored and one that didn't. This is not implemented consistently across other framework hooks, see examples below:useShopQuery
useQuery
Note: The subject of framework hook return types is related to another discussion thread I started, see: Shopify/hydrogen#1948
Beta Was this translation helpful? Give feedback.
All reactions