Packages

c

react

UseMutableSource

case class UseMutableSource[S, A]() extends Product with Serializable

Instantiate this to sync types needed for both funcs.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UseMutableSource
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new UseMutableSource()

Value Members

  1. def create(source: Any, getVersion: Function0[Any]): MutableSource[S]
  2. def productElementNames: Iterator[String]
    Definition Classes
    Product
  3. def use(source: MutableSource[S], getSnapshot: Function1[S, A], subscribe: Function2[S, Function0[Unit], Function0[Unit]]): A

    subscribe 2nd arg is to be called whenever the value changes and is stable.

    subscribe 2nd arg is to be called whenever the value changes and is stable. Last is an unsubscribe for unmounting.