<turbo-stream action="<%= @assets.first_page? ? 'update' : 'append' %>" target="assets">
  <template>
      <%= render partial: 'asset', 
                 collection: @assets, 
                 formats: :html %>    
  </template>
</turbo-stream>


<turbo-stream action="replace" target="asset__sort">
  <template>
    <%= render partial: 'sort', formats: :html %>
  </template>
</turbo-stream>

<turbo-stream action="replace" target="load-more">
  <template>
    <% if @assets.blank? or @assets.last_page? %>
      <div id='load-more'></div>
    <% else %>
      <%= tag.div nil,
                  id: 'load-more',
                  data: {
                    controller: "load-more",
                    load_more_list_id_value: "results",
                    load_more_url_value: path_to_next_page(@assets)
                  } %>
    <% end %>
  </template>
</turbo-stream>