Skip to content

Commit

Permalink
fix: noteExport for activityhash
Browse files Browse the repository at this point in the history
  • Loading branch information
FUDCo committed Mar 12, 2023
1 parent 3f402c3 commit e6689d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/swing-store/src/swingStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,10 @@ function makeSwingStore(dirPath, forceReset, options = {}) {
// Store the new activityhash
const activityhash = hasher.finish();
set('activityhash', activityhash);
// Need to explicitly call noteExport here because activityhash is written
// directly to the low-level store to avoid recursive hashing, which
// bypasses the normal notification mechanism
noteExport(`kv.activityhash`, activityhash);

return { crankhash, activityhash };
}
Expand Down

0 comments on commit e6689d2

Please sign in to comment.