Did you try cancelling the request on the axios side?
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.
Great stuff Furkan! I see the use-case for this in client components, but this isn't necessary anymore with Next.js Server Component nextjs.org/docs/app/building-your-application/dat… You can simply use fetch in the components with await.
Ender Bonnet
Software Engineer
Did you try cancelling the request on the axios side?