Giter VIP home page Giter VIP logo

Comments (4)

srsajjad avatar srsajjad commented on May 9, 2024

This would be helpful to show some kind of modal / popup

from react-error-boundary.

zbyte64 avatar zbyte64 commented on May 9, 2024

I'm afraid that alone wouldn't be enough. You can't show the child components because their new state can't be rendered, you would need to pass in child components from a time prior to the error.

from react-error-boundary.

NotoriousPyro avatar NotoriousPyro commented on May 9, 2024

If the error is being caused by the child component you're trying to render, and you try to render it even though it errored, you'll end up in an infinite loop. I know because I tried it, it caused a loop, and realised what I was doing was not going to work well.

from react-error-boundary.

bvaughn avatar bvaughn commented on May 9, 2024

Rendering children within the fallback isn't something I want to try to support. If you want to re-render children, the supported way to do this is to reset the boundary.

from react-error-boundary.

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.