Skip to content

Instantly share code, notes, and snippets.

@helielson
Last active October 23, 2019 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helielson/4310663052023d2744bfaceeeac38aef to your computer and use it in GitHub Desktop.
Save helielson/4310663052023d2744bfaceeeac38aef to your computer and use it in GitHub Desktop.
import useLazyLoadQuery from 'react-relay/lib/relay-experimental/useLazyLoadQuery';
function Component () {
const { root } = useLazyLoadQuery(ScreenAQuery, null, {
fetchPolicy: 'store-or-network',
});
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment