UNPKG

@shopify/hydrogen-react

Version:

React components, hooks, and utilities for creating custom Shopify storefronts

13 lines (12 loc) 258 B
import * as require$$0 from "react"; function useConstant(fn) { var ref = require$$0.useRef(); if (!ref.current) { ref.current = { v: fn() }; } return ref.current.v; } export { useConstant as default }; //# sourceMappingURL=useConstant.mjs.map