class ReactTestVarF[F[_], A] extends AnyRef
Houses a variable and provides React-like access to it.
Provides mock-like instances of the following: - Reusable functions - StateAccess - StateSnapshot - StateSnapshot with Reusability
It also keeps a log of changes, accessible via .history().
- A
The variable type.
- Since
0.11.0
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ReactTestVarF
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ReactTestVarF(initialValue: A)(implicit sync: Sync[F])
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
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def history(): Vector[A]
Log of state values since initialised or last reset.
Log of state values since initialised or last reset.
Changes are ordered from oldest to newest.
The initial value is also included and is always the first element.
- val initialValue: A
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def modValue(f: (A) => A): Unit
- def modValueOption(f: (A) => Option[A]): Unit
- 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()
- def onUpdate(callback: => Unit): Unit
- def reset(): Unit
- def resetData(): Unit
- def resetListeners(): Unit
- val setStateFn: Reusable[(A) => F[Unit]]
- val setStateOptionCBFn: Reusable[(Option[A], F[Unit]) => F[Unit]]
- def setValue(a: A): Unit
- lazy val stateAccess: StateAccess[F, util.DefaultEffects.Async, A]
- def stateSnapshot(): StateSnapshot[A]
- def stateSnapshotWithReuse()(implicit r: Reusability[A]): StateSnapshot[A]
- implicit val sync: Sync[F]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- ReactTestVarF → AnyRef → Any
- def value(): A
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated