StateSnapshot

japgolly.scalajs.react.extra.internal.StateSnapshot$
object StateSnapshot

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object HooksApiExt

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait HooksApiExt

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object withReuse

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
withReuse.type
object withoutReuse

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Types

type ModFn[S] = Sync => S
type SetFn[-S] = Sync => S
type TupledModFn[S] = Sync => S
type TupledSetFn[-S] = Sync => S

Value members

Concrete methods

def ModFn[F[_], S](f: F => S)(implicit F: Sync[F]): () => S
def SetFn[F[_], S](f: F => S)(implicit F: Sync[F]): () => S
def TupledModFn[F[_], S](f: F => S)(implicit F: Sync[F]): () => S
def TupledSetFn[F[_], S](f: F => S)(implicit F: Sync[F]): () => S
def apply[S](value: S): FromValue[S]
def hook[S](initialValue: => S): CustomHook[Unit, StateSnapshot[S]]

Attributes

Since

2.0.0

def of[I, S](i: I)(implicit t: ReadImpureWritePure[I, S]): StateSnapshot[S]
def useStateSnapshot[S](initialValue: => S): Delayed[StateSnapshot[S]]

Attributes

Since

3.0.0

def xmap[S, T](get: S => T)(set: T => S): FromLens[S, T]
def zoom[S, T](get: S => T)(set: T => S => S): FromLens[S, T]