Hotwire Discussion

Lazy loading more than once

It’s currently possible to lazy load a turbo frame using the src and lazy attributes on a Turbo Frame element.
Is it possible to have that element trigger an async load each and every time the element becomes visible.
Example - A modal being made visible lazy loading the contents each time is opened to ensure the contents are up to date with the server

I re-read your question and realised I got the wrong end of the stick.

I think you should be able to do this by simply changing the currentURL when you hide the modal.