MutationScope class
Recorder for one mutate call. Misses are expected (nothing is cached
before the mutation runs) and never trigger a fetch.
- Implemented types
Constructors
-
MutationScope(SlingClient<
Accessor> client)
Properties
- cache → Cache
-
no setteroverride
-
client
→ SlingClient<
Accessor> -
final
-
deps
→ Set<
String> -
Dependency keys (
entity.field,entity.field[2]for an inline list element — seedepKey) read so far in the current scope. Filled by the cache on every read; used to decide which scopes to rebuild when data changes.final - hashCode → int
-
The hash code for this object.
no setterinherited
- operation → String
-
query,mutationorsubscription.no setteroverride - root → Selection
-
Root of the selection tree recorded in the current scope.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onMiss(
Selection leaf) → void -
Called when a field was read but is not in the cache. For object and
list fields the node itself is reported (its children come as the
skeleton accessors are read).
override
-
onWrite(
CacheWrite write) → void -
Called on manual writes (generated setters) so dependants can be
re-rendered and, during a mutation's optimistic phase, so the write can
be undone if the mutation fails.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited