Hotwire Discussion

How do you handle the document <title>?

Does anyone know how to gracefully handle updating the document’s when a partial page is returned as part of an advance action? In other words, we’re returning a response, via data-turbo-action="advance", but without a layout.

We’d rather keep <title> co-located with the content being returned, rather than updating it via Stimulus. Any suggestions?