demo-store@2.1.0
·
1257 commits
to main
since this release
Minor Changes
-
Support Remix Hot Module Replacement (HMR) and Hot Data Revalidation (HDR). (#1187) by @frandiox
Start using it with the following changes to your project:
-
Upgrade to the latest Hydrogen version and Remix 1.19.1.
-
Enable the v2 dev server in
remix.config.js:
// ... future: { + v2_dev: true, v2_meta: true, v2_headers: true, // ... }- Add Remix'
<LiveReload />component if you don't have it to yourroot.jsxorroot.tsxfile:
import { Outlet, Scripts, + LiveReload, ScrollRestoration, } from '@remix-run/react'; // ... export default function App() { // ... return ( <html> <head> {/* ... */} </head> <body> <Outlet /> <ScrollRestoration /> <Scripts /> + <LiveReload /> </body> </html> ); } export function ErrorBoundary() { // ... return ( <html> <head> {/* ... */} </head> <body> Error! <Scripts /> + <LiveReload /> </body> </html> ); } -
Patch Changes
-
Performance optimization on product page (#1256) by @wizardlyhel
-
Add shouldRevalidate export to limit root loaders revalidation on mutations only (#1237) by @juanpprieto
-
Updated dependencies [
a06b5093,d053978d,9fcfc500,ec21cfd6,867866d1,bdac4c22,d896c76b,46d5f8ff,632a7a38,e536ae04]:- @shopify/cli-hydrogen@5.2.0
- @Shopify/hydrogen@2023.7.3