Skip to content

Change return type of withErrorBoundary #17231

Closed

Description

@chargome

Description

#17230 introduced memo which changes the underlying type. We should change this to React.MemoExoticComponent.

Activity

  1. added this to the 11.0.0 milestone on Jul 30, 2025
  2. linear commented on Jul 30, 2025

    @linear
  3. changed the title [-]Change return type of withErrorBoundary[/-] [+]Change return type of `withErrorBoundary`[/+] on Jul 30, 2025
  4. AbhiPrasad commented on Jul 31, 2025

    @AbhiPrasad
    Contributor

    Do we? To the user there is effectively no difference, and using memo is just an implementation detail. Changing the type also reduces the flexibility we have in the future (let's say we want to remove memo for future versions of React).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions