Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following the update guide from skeleton template for 2024.10.2: https://github.com/Shopify/hydrogen/blob/main/templates/skeleton/CHANGELOG.md#2024102
There isn’t much UI changes aside from before we are able to click on non-existing variants and the button would do nothing. Now, it is properly navigating to the first available variant.
The suspense/await was purely for the fact we had to query for all variants of a product to figure out variant availability. This all variant query would become very slow if there is a lot of variant (you only need about 50 variants to start to feel the slowness).
Now that adjacent variant information are available within the first query, we no longer need to query for all variants