Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add useMessageFromExtension hook #3802

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Nov 12, 2024

There's a lot of duplicated code for various webviews receiving a message from the extension. This PR factors out a React hook, useMessageFromExtension, with the common logic.

Commit-by-commit review recommended. I've isolated trivial indentation/formatting changes to its own commit so it's easier to review.

@asgerf asgerf changed the title Asgerf/use message from extension Add useMessageFromExtension hook Nov 12, 2024
@asgerf asgerf marked this pull request as ready for review November 13, 2024 08:19
@asgerf asgerf requested review from a team as code owners November 13, 2024 08:19
Copy link
Member

@koesie10 koesie10 left a comment

Choose a reason for hiding this comment

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

Thanks, this makes sense to me.

@asgerf asgerf merged commit ea45e38 into github:main Nov 18, 2024
27 checks passed
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