@rotorsoft/act 0.33.0 → 0.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1775,6 +1775,15 @@ async function load(me, stream, callback, asOf) {
1775
1775
  ...cached ? { after: cached.event_id } : { with_snaps: true, ...asOf }
1776
1776
  }
1777
1777
  );
1778
+ if (replayed > 0 && !timeTravel && event) {
1779
+ await cache().set(stream, {
1780
+ state: state2,
1781
+ version,
1782
+ event_id: event.id,
1783
+ patches,
1784
+ snaps
1785
+ });
1786
+ }
1778
1787
  return { event, state: state2, version, patches, snaps, cache_hit, replayed };
1779
1788
  }
1780
1789
  async function action(me, action2, target, payload, reactingTo, skipValidation = false) {