case class ReactionConfig(rules: ReactionRouter.Rules, prefixPath: Option[String] = None, postRender: Option[(PathParts) => Unit] = None, render: (ReactionRouter.Control, (ReactionRouter.Control) => ReactNode) => ReactNode = (c,f) => f(c)) extends ConfigLike with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ReactionConfig
- Serializable
- Product
- Equals
- ConfigLike
- ConfigLike
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ReactionConfig(rules: ReactionRouter.Rules, prefixPath: Option[String] = None, postRender: Option[(PathParts) => Unit] = None, render: (ReactionRouter.Control, (ReactionRouter.Control) => ReactNode) => ReactNode = (c,f) => f(c))
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val postRender: Option[(PathParts) => Unit]
Run after render loop, not immediately after
render
.Run after render loop, not immediately after
render
.- Definition Classes
- ReactionConfig → ConfigLike
- val prefixPath: Option[String]
- Definition Classes
- ReactionConfig → ConfigLike
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val render: (ReactionRouter.Control, (ReactionRouter.Control) => ReactNode) => ReactNode
Renders the content if the rules return a
Render
action.Renders the content if the rules return a
Render
action.- Definition Classes
- ReactionConfig → ConfigLike
- val rules: ReactionRouter.Rules
Route rules.
Route rules. You may want to use a router matcher library e.g.
sparsetech.trail
or pattern match on the path parts. Return an Action that renders to null to remove the router from react rendering. This is a total function so you are responsible for returning an Action even if its for an unplanned page (e.g. 404).- Definition Classes
- ReactionConfig → ConfigLike
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withPostRender(f: (PathParts) => Unit): ReactionConfig
Add a post renderer to this config, runs before existing postRender thunk.