---
title: "Discussion on \"Correct way to cancel your axios calls if your components are unomunted\" | Hashnode"
description: "Discussion on \"Correct way to cancel your axios calls if your components are unomunted\". A story retold milion times\nSo there is a list of some items in your app. \nNo I am not a fortune teller, it's just that there is one in almost every app.\nBut let me guess again when you click on an item in that list it opens a detail page of that ite..."
url: "https://hashnode.com/posts/correct-way-to-cancel-your-axios-calls-if-your-components-are-unomunted/5f3fc0109c00245eb87c5aa1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Correct way to cancel your axios calls if your components are unomunted](https://www.thefdidijustlearn.dev/correct-way-to-cancel-your-axios-calls-if-your-components-are-unomunted?utm_source=hashnode&utm_medium=feed)

A story retold milion times So there is a list of some items in your app. No I am not a fortune teller, it's just that there is one in almost every app. But let me guess again when you click on an item in that list it opens a detail page of that ite...

Aug 21, 2020 · 9 min read · thefdidijustlearn.dev  
Read the article

-   [#axios](https://hashnode.com/tag/axios)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#react-native](https://hashnode.com/tag/react-native)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Ognjen Lazić](https://hashnode.com/@ognjetina)

@ognjetina

  
[View profile](https://hashnode.com/@ognjetina)

ognjetina

I am a software craftsman. Expert for exploration phase in product development. In rapid software development for over 4 year. Author of many non written books. Have been to space, also in time.

## Responses 1

Markdown supported · ⌘↵ to post

[Bruno Raljic](https://hashnode.com/@brunor)

[Aug 21, 2020](https://hashnode.com/posts/correct-way-to-cancel-your-axios-calls-if-your-components-are-unomunted/5f3fc0109c00245eb87c5aa1/comment/5f3fc5209c00245eb87c5ad2)

Nice article! Guilty as charged, done this so many times.

May I suggest adding some hashnode tags to your article, so it can get be shown to bigger audience

[Ognjen Lazić](https://hashnode.com/@ognjetina)

[Aug 21, 2020](https://hashnode.com/posts/correct-way-to-cancel-your-axios-calls-if-your-components-are-unomunted/5f3fc0109c00245eb87c5aa1/comment/5f3fc5209c00245eb87c5ad2#reply-5f3fc828975d3e5ed91c13c0)

thx for the feedback :) I will add them as soon as I figure out where and how, as you know I am a noob here :D

And done! :)

#hashnode is amazing :)
