Optimistic update plugin - apply optimistic state, rollback on failure.
Accepts per-action apply functions that optimistically mutate state
and return a rollback closure. If the handler (or async resolution) fails,
the rollback is called automatically.
Optimistic update plugin - apply optimistic state, rollback on failure.
Accepts per-action
applyfunctions that optimistically mutate state and return a rollback closure. If the handler (or async resolution) fails, the rollback is called automatically.