How to infer the type from `useAsyncData`?
I am getting a list of products through
However, I want to know which product is currently being viewed/selected and I want to give that
Here's the thing tho, I want to make that type a single item, not an array of items. But I have no ideas how to unwrap this infered type from Simplify and SerializeObject.
Help is greatly appreciated!
api endpoint. Using useAsyncData it knows what it will be returning, which is great!However, I want to know which product is currently being viewed/selected and I want to give that
ref a type that is infered from this data. Here's the thing tho, I want to make that type a single item, not an array of items. But I have no ideas how to unwrap this infered type from Simplify and SerializeObject.
Help is greatly appreciated!