Skip to content

Instantly share code, notes, and snippets.

@bartcis
Created January 20, 2020 20:00
Show Gist options
  • Save bartcis/242f2a381785af7fbb333c245f39c507 to your computer and use it in GitHub Desktop.
Save bartcis/242f2a381785af7fbb333c245f39c507 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