How to use the @shopify/react-async.AssetTiming.NextPage function in @shopify/react-async

To help you get started, we’ve selected a few @shopify/react-async examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Shopify / quilt / packages / react-graphql / src / async / query.ts View on Github external
function usePreload() {
    return useAsync(resolver, {assets: AssetTiming.NextPage}).load;
  }

@shopify/react-async

Tools for creating powerful, asynchronously-loaded React components

MIT
Latest version published 5 months ago

Package Health Score

62 / 100
Full package analysis

Similar packages