element.getRecommendation()
The shopper’s recommended size for this product once known (see the recommendation event).
getRecommendation(): Promise<Recommendation>;Returns
Section titled “Returns”Promise<Recommendation>: Resolves with the first recommendation once known (see tys.recommendation() for the fields).
Example
Section titled “Example”const r = await guide.getRecommendation();if (r.status === "ready") preselect(r.size);const ref = useRef<ElementHandle>(null);const r = await ref.current?.getRecommendation();Was this page helpful?
Thank you. We read every answer.