turbo:frame-missing: Re-use FetchResponse HTML#672
Conversation
After re-considering a comment on [hotwired#445][], this commit re-purposes the response HTML from the `FetchResponse` instance, instead of issuing a follow-up HTTP request. [hotwired#445]: hotwired#445 (comment)
|
Nice. This will save that extra request 👍 |
|
Doesn't the response not include a layout? I know there was talk of always including the layout for frame requests, but it sounds like that was dismissed (hotwired/turbo-rails#232 (comment)). I'm experiencing an issue where I have a form contained within a Turbo Frame, and on submit I want to redirect to a different page that does not contain a matching frame. What happens is:
It seems like the two options to fix this are either to 1. remove the |
After re-considering a comment on hotwired/turbo#445, this commit
re-purposes the response HTML from the
FetchResponseinstance, insteadof issuing a follow-up HTTP request.