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

Document makeCustomWebView w/ bridge components #58

Closed
wants to merge 1 commit into from

Conversation

joemasilotti
Copy link
Member

As discussed in #57:

Using both Hotwire.config.makeCustomWebView and Hotwire.registerBridgeComponents() causes unexpected behavior. If the web view is configured first then it is not used. If bridge components are registered first then the bridge is not initialized in the web view.

This PR documents that a developer must manually call Bridge.initialize(webView) if using Hotwire.config.makeCustomWebView and call it after calling Hotwire.registerBridgeComponents(). It's not ideal, but I'm not sure of a better fix just yet.

But we do have some nice option-click documentation now!

image

@jayohms
Copy link
Contributor

jayohms commented Dec 16, 2024

Closing since we have an incoming fix.

@jayohms jayohms closed this Dec 16, 2024
@jayohms jayohms deleted the document-makeCustomWebView branch December 16, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants