July 2024 release: Optimistic variants, Storefront API 2024-07
July 11, 2024
Welcome to Hydrogen's release for July 2024.
The coinciding 2024-07 Storefront API is now supported and we’re excited to release another tool to help build optimistic UI — this time for making snappy product forms!
Faster Product Forms with useOptimisticVariant
Following the release of Optimistic Cart last month, Hydrogen now provides optimistic variant support with a new useOptimisticVariant hook. This makes switching between variants instantaneous.
Upgrade with just a few lines of code - see the upgrade guide in the release notes.
Updates, optimizations, and fixes
As always, this month’s release brings you a range of additional optimizations, bug fixes, and quality-of-life tweaks:
- Add sellingPlanId support to BuyNowButton (#2254) - thanks @dvisockas!
- New customer account session commit pattern (breaking) (#2137)
- VariantSelector improved handling of options (breaking) (#2113)
- Update Remix to 2.10.0 which included fixes to infinite loading error (#2290)
- Types fixes for optimistic cart (#2132)
- CLI: Vite bundle analyzer (#2138)
- CLI: Support CSS options in Vite projects (#2245)
To take advantage of all the latest features and improvements in Hydrogen, just run npx shopify hydrogen upgrade. That’s it for the July release — see you in August!
Get building
Spin up a new Hydrogen app in minutes.
See documentation