PhoenixLiveViewExt.Listiller.apply

You're seeing just the function apply, go back to PhoenixLiveViewExt.Listiller module for more information.
Link to this function

apply(listilled, old_state, new_state)

View Source

Specs

Distills a list of assigns for the provided component module implementing the Listilled behaviour. Returns a tuple with the list of assigns and the list meta data. The returned tuple may be passed as such to the Listilled.Helpers.assign_list/2 function to have the list assigns, the update type and the state version assigned to the socket.

Raises ArgumentError if while diffing a Listilled.component_id/2 function implementation returns a string value containing the ':' character.

Note: Due to the lack of access to the LiveView internally held diff state and the fact that we intentionally assign constructed assigns as temporary_assigns, this function invokes PhoenixLiveViewExt.Listilled.construct_assigns/2 on both the new and the old state in every cycle. Typically, this has no significant impact on the overall performance even with tens of thousands of elements and the approach was chosen over keeping the derived transformations as (persistent) assigns to reduce memory load on the LiveView instance for it is expected that most if not all of the state supplied to the function is already kept stored with in the LiveView instance.