Closed Overload119 closed 3 years ago
Render async is not working as a result. Any tips for debugging?
= content_for :render_async = render_async my_path do ...
<div id="render_async_44dbb2c2501634604700">...</div>
I'm using Turbolinks and Webpacker (if that's relevant).
Note that I was using layout: false and no layout. I tried adding to application layout but the same result.
layout: false
Another thing I tried is adding a breakpoint to my view to check the value of content_for :render_async and the result is nil.
content_for :render_async
Okay, I fixed this.
= content_for :render_async has to be placed AFTER render_async
= content_for :render_async
Render async is not working as a result. Any tips for debugging?
I'm using Turbolinks and Webpacker (if that's relevant).
Note that I was using
layout: false
and no layout. I tried adding to application layout but the same result.Another thing I tried is adding a breakpoint to my view to check the value of
content_for :render_async
and the result is nil.