Expand description

This module defines the TrackingCopy - a utility that caches operations on the state, so that the underlying state remains unmodified, but it can be interacted with as if the modifications were applied on it.

Structs

  • An interface for the global state that caches all operations (reads and writes) instead of applying them directly to the state. This way the state remains unmodified, while the user can interact with it as if it was being modified in real time.
  • Keeps track of already accessed keys. We deliberately separate cached Reads from cached mutations because we want to invalidate Reads’ cache so it doesn’t grow too fast.

Enums

Traits

Functions