BaseComponentWrapper

slinky.core.BaseComponentWrapper$
See theBaseComponentWrapper companion class

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

Enables writing props and state for Scala defined components. This is needed for hot loading, where data must be written to a JS object and then read when the application is reloaded.

Enables writing props and state for Scala defined components. This is needed for hot loading, where data must be written to a JS object and then read when the application is reloaded.

Attributes

def insertMiddleware(middleware: (Object, Object) => Object): Unit

Inserts a component constructor middleware function, which transforms a component constructor given the original constructor and the outer component object (for state tracking)

Inserts a component constructor middleware function, which transforms a component constructor given the original constructor and the outer component object (for state tracking)

This is used for hot-loading, which wraps the component constructor inside a proxy component

Attributes

middleware

the middleware function to use

Implicits

Implicits

implicit def proplessKeyAndRef[C <: BaseComponentWrapper { type Props = Unit; }](c: C)(implicit constructorTag: ConstructorTag[Def]): KeyAndRefAddingStage[Def]