hotwired / turbo-rails

Use Turbo in your Ruby on Rails app
https://turbo.hotwired.dev
MIT License
2.09k stars 322 forks source link

InstaClick prefetch not working with fragment cache #598

Closed Nonstop1225 closed 6 months ago

Nonstop1225 commented 6 months ago

So I have a pretty simple turbo frame loading a collection and when fragment caching is on it no longer seems to prefetch the links on hover. Something simple like below and the links inside the partial no longer are being prefetched. Am I doing something wrong or?

<%= turbo_frame_tag :item_list, data: { turbo_action: "advance" } do %>
  <%= render :partial => "item", :collection => @items, cached: true %>  
<% end %>