LowPriorityImplicits

com.raquo.laminar.api.Implicits.LowPriorityImplicits

Implicit conversions from X to Inserter are primarily needed for onMountInsert, but they are relatively expensive compared to simpler alternatives when a mere Modifier would suffice. And so, the conversions below are de-prioritized.

#Note: Prior to v17, these conversions involved dynamic inserters with inefficient implementations like children <-- Val(nodes.toList). Now, they use static inserters, and don't have such a significant inefficiency. #TODO Simplify this! See the other #TODO comment above about moving stuff out of LowPriorityImplicits.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Implicits
trait Laminar

Members list

Implicits

Implicits

implicit def componentOptionToInserter[Component](maybeComponent: Option[Component])(implicit renderableNode: RenderableNode[Component]): StaticChildrenInserter
implicit def componentSeqToInserter[Collection[_], Component](components: Collection[Component])(implicit renderableSeq: RenderableSeq[Collection], renderableNode: RenderableNode[Component]): StaticChildrenInserter
implicit def componentToInserter[Component : RenderableNode](component: Component): StaticChildInserter
implicit def textToInserter[TextLike](value: TextLike)(implicit r: RenderableText[TextLike]): StaticInserter