Skip to content

Convert react-error-overlay to React #2100

Closed

Description

@gaearon

It's currently pretty complicated. We should turn this into a separate package with a build step, and probably use React as a dependency instead of vanilla JS code.

We shouldn't have the "duplicate React" issue because it's technically inside an iframe and would get its own copy of React. So if I understand it right, they wouldn't share any state, and if React in the app breaks, the one in the overlay should not be affected.

This should also work if the main app stops depending on React.

Activity

  1. added this to the milestone on May 8, 2017
  2. Timer commented on May 8, 2017

    @Timer
    Contributor

    So I went ahead and turned this into a separate package (and flow-type'd it) a while ago simply because it was virtually impossible to change things without breaking everything. See here.

    The current copy in this repo is basically the rollup'd version of that package (which isn't published).

    Switching it to React is viable now since we're using an iframe, but wasn't before since it wasn't in it's own frame. In hindsight, doing it in React probably would've been optimal but that was pre-iframe days.

  3. gaearon commented on May 8, 2017

    @gaearon
    ContributorAuthor

    Yea I was being silly for not thinking of this earlier.

    Do you mind bringing your package into our monorepo?

  4. Timer commented on May 8, 2017

    @Timer
    Contributor

    Sure, we can do that. 😄

  5. modified the milestones: , on May 10, 2017
  6. gaearon commented on May 10, 2017

    @gaearon
    ContributorAuthor

    I think we should do this asap because it’s going to be tough to fix bugs as soon as this is out.

  7. gaearon commented on May 10, 2017

    @gaearon
    ContributorAuthor

    I’m cool with keeping it separate too if you would prefer that. Just need access to publishing.

  8. Timer commented on May 10, 2017

    @Timer
    Contributor

    The package(s) have been brought into this repo. 👍

  9. changed the title [-]Modularize crashOverlay[/-] [+]Convert react-error-overlay to React[/+] on May 10, 2017
  10. modified the milestones: , on May 11, 2017
  11. 1 remaining item

  12. tharakawj commented on May 20, 2017

    @tharakawj
    Contributor

    Is anyone working on this? If not, I would like to write some React code 😄

  13. gaearon commented on May 20, 2017

    @gaearon
    ContributorAuthor

    I don't think anyone started it yet. Please do!

  14. modified the milestones: 1.x, on May 20, 2017
  15. gaearon commented on May 20, 2017

    @gaearon
    ContributorAuthor

    The latest code lives in packages/react-error-overlay.

  16. tharakawj commented on May 20, 2017

    @tharakawj
    Contributor

    Ok. Thanks!

  17. gaearon commented on May 20, 2017

    @gaearon
    ContributorAuthor

    Note that it has a build step (see its package.json).

  18. tharakawj commented on May 20, 2017

    @tharakawj
    Contributor

    Noted!

  19. gaearon commented on Aug 28, 2017

    @gaearon
    ContributorAuthor

    Fixed in 645dc42.

  20. modified the milestones: 1.0.12, 1.x on Aug 28, 2017
  21. locked and limited conversation to collaborators on Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions