Code Monkey home page Code Monkey logo

Comments (6)

keremcanb avatar keremcanb commented on July 24, 2024 1

Finally I found the source of the problem. Latest version of webpack-dev-server has a new feature described as "Overlay displays unhandled promise rejection". This was causing the problem, downgrading to previous version solved it. Thanks again.

from axios-hooks.

simoneb avatar simoneb commented on July 24, 2024

I believe the problem is that this library is not (yet) compatible with axios 1.x.

from axios-hooks.

keremcanb avatar keremcanb commented on July 24, 2024

I believe the problem is that this library is not (yet) compatible with axios 1.x.

I'm getting the errors with axios v0.21.1 & axios-hooks v2.6.3 as well. This is our original setup, I upgraded them to see if it hepls but it didn't.

from axios-hooks.

simoneb avatar simoneb commented on July 24, 2024

I've just bumped the Node version we use in CI to LTS (meaning 18), and tests still pass, so I don't know what the problem might be. Any chance you can put together a repro which shows the issue?

from axios-hooks.

keremcanb avatar keremcanb commented on July 24, 2024

I've just bumped the Node version we use in CI to LTS (meaning 18), and tests still pass, so I don't know what the problem might be. Any chance you can put together a repro which shows the issue?

Thanks for your quick response and interest. 🙏 I'll try to put together a repo.

Also, upon further investigation I've found out some cases that trigger the error. For example, we have a page that calls 3 services at the same time using "manual: false" and all services get cancelled now. Or there are some pages that call a service when an amount is entered at input field. If they are not debounced, they trigger the error.

I know calling many services at the same time or not debouncing are bad practices. But they were working properly before, and because our codebase is massive, it'd be very difficult to find and fix all of them now.

from axios-hooks.

simoneb avatar simoneb commented on July 24, 2024

Thanks for the additional details. Unfortunately without a minimal reproduction I wouldn't be able to say what the issue might be, although the behavior you describe seems somewhat unexpected. If you could put together a minimal repro I could then check what might have gone wrong.

from axios-hooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.