mountPatches

inline fun <V> TagContext.mountPatches(into: RenderContext?, upstream: Flow<List<V>>, crossinline createPatches: (Flow<List<V>>, MutableMap<Node, Job>) -> Flow<List<Patch<RenderContext>>>)

Mounts a Flow of Patches to the DOM either

  • creating a new context-Div as a child of the receiver

  • or, if into is set, replacing all children of this Tag.

Parameters

into

if set defines the target to mount the content to (replacing its static content)

upstream

the Flow that should be mounted

createPatches

lambda defining, how to compare two versions of a List