Skip to content

refactor(Support): rewrite class component to functional#8173

Open
sujalgoel wants to merge 2 commits intowebpack:mainfrom
sujalgoel:refactor/support-to-functional
Open

refactor(Support): rewrite class component to functional#8173
sujalgoel wants to merge 2 commits intowebpack:mainfrom
sujalgoel:refactor/support-to-functional

Conversation

@sujalgoel
Copy link
Copy Markdown
Contributor

Summary

Part of #8161. Converts Support from a class component to a functional component using hooks. Moves the supporters computation into useMemo to satisfy the react-hooks/purity lint rule. Also adds tests.

What kind of change does this PR introduce?

Refactor. No behavior or visual changes.

Did you add tests for your changes?

Does this PR introduce a breaking change?

No.

If relevant, what needs to be documented once your changes are merged or what have you already documented?

N/A

Use of AI

No.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Apr 8, 2026 10:05am

Request Review

<h2>
Backers
</h2>
`;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we add more tests and handle more cases, including, image not loaded and other stuff

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

working on it!

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.

2 participants