Releases: Shopify/hydrogen
Releases · Shopify/hydrogen
@shopify/create-hydrogen@4.3.9
Patch Changes
-
Add JSdoc to
getSelectedProductOptions
utility and cleanup the skeleton implementation (#2089) by @juanpprieto -
Updated dependencies [
286589ee
,2c11ca3b
]:- @shopify/cli-hydrogen@8.0.4
@shopify/cli-hydrogen@8.0.4
Patch Changes
skeleton@1.0.9
skeleton@1.0.10
@shopify/create-hydrogen@4.3.8
@shopify/create-hydrogen@4.3.7
@shopify/cli-hydrogen@8.0.3
@shopify/cli-hydrogen@8.0.2
skeleton@1.0.8
Patch Changes
-
Stop inlining the favicon in base64 to avoid issues with the Content-Security-Policy. In
vite.config.js
: (#2006) by @frandioxexport default defineConfig({ plugins: [ ... ], + build: { + assetsInlineLimit: 0, + }, });
-
To improve HMR in Vite, move the
useRootLoaderData
function fromapp/root.tsx
to a separate file likeapp/lib/root-data.ts
. This change avoids circular imports: (#2014) by @frandiox// app/lib/root-data.ts import {useMatches} from '@remix-run/react'; import type {SerializeFrom} from '@shopify/remix-oxygen'; import type {loader} from '~/root'; /** * Access the result of the root loader from a React component. */ export const useRootLoaderData = () => { const [root] = useMatches(); return root?.data as SerializeFrom<typeof loader>; };
Import this hook from
~/lib/root-data
instead of~/root
in your components. -
Updated dependencies [
b4dfda32
,ffa57bdb
,ac4e1670
,0af624d5
,9723eaf3
,e842f68c
]:- @shopify/cli-hydrogen@8.0.1
- @Shopify/hydrogen@2024.4.1