-
Notifications
You must be signed in to change notification settings - Fork 27
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
bridgeDidIgnoreMessage triggered after FormSubmission on modal #83
Comments
For anyone that comes across this issue, for now, I have added an event listener to listen for the |
Hi @williamkennedy 👋 Steps to reproduce (with the upcoming demo app that includes tabs, which is awesome btw! 🎉):
<body>
<%= render "shared/nav" %>
<div class="my-3">
<%= render "shared/flash" %>
+ <button data-controller="bridge--overflow-menu">
+ Overflow Menu
+ </button>
<%= yield %>
</div>
</body> Result: Your PR #84 solved the issue for me—thanks for that! 🙏 Here's a diff of the behavior:
|
Intro
Great work on hotwire-native-ios. The evolution from turbo-ios has been a joy to work with.
I'm unsure if this problem is a stimulus or a hotwire-native-ios issue. I have not tried to replicate this on Android just yet.
Update
After further debugging, I believe it has to do with the destination lifecycle in the BridgeDelegate.
Behavior
When submitting a form with success and redirect, the bridge component raises the error message
bridgeDidIgnoreMessage
. It seems that the message is rejected and called from this lineThis means the bridge does not render on the show page after redirect.
Expected Behavior
The bridge component should be rendered.
Video
https://share.cleanshot.com/L16qxynS
Source code
Branch is here and PR to show file change is here
Logs
The text was updated successfully, but these errors were encountered: