-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Query all eager loading turbo frames and patch their innerHTML #164
Query all eager loading turbo frames and patch their innerHTML #164
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far as I understand the functionality of lazy-loaded Turbo Frames, this looks sound to me. I guess they use DOM ids to identify frames? For some reason, I thought they gave them arbitrary identifiers.
Depending on your reaction to one of my questions, you might need to make the lazy fetch into a recursive function.
Yep, frames all use IDs right now. |
8685c71
to
6ffc111
Compare
6ffc111
to
22ea8f6
Compare
22ea8f6
to
fcbb462
Compare
Excited to see this coming together. |
So I can declare success! I threw together a couple of test cases including nested eager loaded frames, and it worked. Thanks to @ParamagicDev for your support and reviewing it en passent 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with comments re: naming and a request for clarification.
Allows to fetch and patch lazy loaded turbo frames present in the response eagerly.