Skip to content

Instantly share code, notes, and snippets.

@jgthms
Forked from bartcis/abort_help_hooks.js
Created July 22, 2022 08:16
Show Gist options
  • Save jgthms/6d22a7470bbab5f600f81be1aad72b1e to your computer and use it in GitHub Desktop.
Save jgthms/6d22a7470bbab5f600f81be1aad72b1e to your computer and use it in GitHub Desktop.
Hook helpers
const [articleId, setArticleId] = useState(2);
const [articleRequest, abortArticleRequest] = useGetSingleArticle({articleId: articleId});
const abortFuncs = useRef([]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment