<%= turbo_stream.remove @destroyed_node %>

<% if @node %>
<turbo-stream action="replace" targets="#<%= dom_id(@node) %>">
  <template>
    <%= render partial: 'node', object: @node %>
  </template>
</turbo-stream>
<% end %>


<%= turbo_stream.update "tree" do %>
  <%= render partial: "tree" %>
<% end %>

<%= turbo_stream.append 'flash', partial: 'layouts/flash' %>