Skip to content

Conversation

chargome
Copy link
Member

Cursor failed me on this one so fixing here.

closes #17183

@chargome chargome self-assigned this Jul 30, 2025
@chargome chargome requested a review from andreiborza July 30, 2025 14:29
expect(Component.displayName).toBe(`errorBoundary(${UNKNOWN_COMPONENT})`);
});

it('does not rerender when props are identical', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tbh I think these tests are useless, you're just testing react api here. I think we don't need tests for this at all.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd leave them in still, since they'll make sure we keep this memoized. But good point indeed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

withErrorBoundary create unnecessary rerenders

2 participants