FromLens

japgolly.scalajs.react.extra.internal.StateSnapshot$.withReuse$.FromLens
final class FromLens[S, T](l: Lens[S, T]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def prepare(modify: () => S): FromLensSetStateFn[S, T]

This is meant to be called once and reused so that the setState callback stays the same.

This is meant to be called once and reused so that the setState callback stays the same.

Attributes

def prepareF[F[_] : Sync](modify: F => S): FromLensSetStateFn[S, T]

This is meant to be called once and reused so that the setState callback stays the same.

This is meant to be called once and reused so that the setState callback stays the same.

Attributes

def prepareTupled(modify: () => S): FromLensSetStateFn[S, T]

This is meant to be called once and reused so that the setState callback stays the same.

This is meant to be called once and reused so that the setState callback stays the same.

Attributes

def prepareTupledF[F[_] : Sync](modify: F => S): FromLensSetStateFn[S, T]

This is meant to be called once and reused so that the setState callback stays the same.

This is meant to be called once and reused so that the setState callback stays the same.

Attributes

def prepareVia[F[_], A[_], I](i: I)(implicit t: Write[I, F, A, S]): FromLensSetStateFn[S, T]

This is meant to be called once and reused so that the setState callback stays the same.

This is meant to be called once and reused so that the setState callback stays the same.

Attributes

def prepareViaCallback[F[_], I, G[_], A[_]](cb: F[I])(implicit t: I => ModState[G, A, S], F: Sync[F], G: Sync[G]): FromLensSetStateFn[S, T]
def prepareViaProps[F[_], A1[_], P, S1, I, G[_], A2[_]]($: MountedSimple[F, A1, P, S1])(f: P => I)(implicit t: I => ModState[G, A2, S], F: Sync[F], G: Sync[G]): FromLensSetStateFn[S, T]
def xmap[U](get: T => U)(set: U => T): FromLens[S, U]
def zoom[U](get: T => U)(set: U => T => T): FromLens[S, U]