Base trait for actions.
Base trait for actions. Use this as a basis for your action class hierarchy to get an automatic
type class instance of ActionType[Action]
. Note that this trait is just a helper, you don't need
to use it for your actions as you can always define your own ActionType
instances for your action types.
A batch of actions.
A batch of actions. These actions are dispatched in a batch, without calling listeners in-between the dispatches.
Base class for all action handlers.
The ActionType
type class is used to verify that only valid actions are dispatched.
The ActionType
type class is used to verify that only valid actions are dispatched. An implicit instance of
ActionType[A]
must be in scope when calling dispatch methods or creating effects that return actions.
ActionType
is contravariant, which means it's enough to have an instance of ActionType
for a common supertype
to be able to dispatch actions of its subtypes. For example providing an instance of ActionType[Action]
allows
dispatching any class that is a subtype of Action
.
Action type
Implements common functionality for all model readers
Implements common functionality for all model readers
Type of the base model
Type of the reader value
Implements common functionality for all reader/writers
Implements common functionality for all reader/writers
Type of the base model
Type of the reader/writer value
Wraps multiple Effects
to be executed later.
Wraps multiple Effects
to be executed later. Effects are executed in the order they appear and the
next effect is run only after the previous has completed. If an effect fails, the execution stops.
Wraps multiple Effects
to be executed later.
Wraps multiple Effects
to be executed later. Effects are executed in parallel without any ordering.
Wraps a function to be executed later.
Wraps a function to be executed later. Function must return a Future[A]
and the returned
action is automatically dispatched when run
is called.
Typeclass for fast equality comparison.
Implicit FastEq typeclass instances for AnyRef and AnyVal
Model reader for a flatMapped value
Model reader/writer for a flatMapped value
Model reader for a mapped value
Model reader/writer for a mapped value
Base trait for all model readers
Base trait for all model readers
Type of the base model
Type of the reader value
A read-only version of ModelR that doesn't know about the root model.
A read-only version of ModelR that doesn't know about the root model.
Type of the reader value
Base trait for all model writers
Base trait for all model writers
Type of the base model
Type of the reader/writer value
Defines a Diode specific Monad for traversing models with Option
s etc.
Model reader for the root value
Model reader/writer for the root value
Marker trait for readers to indicate the use of value equality instead of the default reference equality
Model reader for two zipped readers
Model reader for a zoomed value
Model reader/writer for a zoomed value
Provides a type class instance of ActionType for Any, allowing you to dispatch anything as an action.
Provides a type class instance of ActionType for Any, allowing you to dispatch anything as an action.
Bring to scope with import diode.AnyAction._
Implicit FastEq typeclass instance for UseValueEq
marker trait
Use NoAction
when you need to dispatch an action that does nothing