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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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
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.

1 participant