module

LiveView::Diff

Class methods

compute(previous : Array(String) | Nil, rendered : Rendered) : Hash(String, String)

Returns the changed dynamics as {"index" => value} — an empty map when nothing changed (the client applies empty diffs as no-ops).

Source