---
title: "Comment by Ender Bonnet on \"How to Use SWR for Better Data Fetching Approach\" | Hashnode"
description: "Did you try cancelling the request on the axios side?"
url: "https://hashnode.com/posts/how-to-use-swr-for-better-data-fetching-approach/646af295403a24631e43497c/comment/64733a133f35dda0a9992c7c"
---

[Discussion](https://hashnode.com/posts/how-to-use-swr-for-better-data-fetching-approach/646af295403a24631e43497c)

Comment [How to Use SWR for Better Data Fetching Approach](https://hashnode.com/posts/how-to-use-swr-for-better-data-fetching-approach/646af295403a24631e43497c)

[Ender Bonnet](https://hashnode.com/@enBonnet)

[May 28, 2023](https://hashnode.com/posts/how-to-use-swr-for-better-data-fetching-approach/646af295403a24631e43497c/comment/64733a133f35dda0a9992c7c)

Did you try cancelling the request on the axios side?

[Furkan Emin Can](https://hashnode.com/@femincan)

[May 28, 2023](https://hashnode.com/posts/how-to-use-swr-for-better-data-fetching-approach/646af295403a24631e43497c/comment/64733a133f35dda0a9992c7c#reply-6473563d3f35dda0a9992fa4)

Thanks for the comment Ender.

As I have mentioned in the article, If I didn't use the "Cancelling the button during the ongoing request" approach, I would use AbortController with Axios. But I didn't choose this approach for simplicity.

[Ender Bonnet](https://hashnode.com/@enBonnet)

[May 29, 2023](https://hashnode.com/posts/how-to-use-swr-for-better-data-fetching-approach/646af295403a24631e43497c/comment/64733a133f35dda0a9992c7c#reply-6474c073fff355b232814ecc)

[Furkan Emin Can](https://hashnode.com/@femincan) I get it! Cool article!
