Skip to content

demo-store@2.1.0

Compare
Choose a tag to compare
@shopify-github-actions-access shopify-github-actions-access released this 22 Aug 01:33
· 778 commits to main since this release
6e76f95

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:

    1. Upgrade to the latest Hydrogen version and Remix 1.19.1.

    2. Enable the v2 dev server in remix.config.js:

    // ...
    future: {
    + v2_dev: true,
      v2_meta: true,
      v2_headers: true,
      // ...
    }
    1. Add Remix' <LiveReload /> component if you don't have it to your root.jsx or root.tsx file:
    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