Skip to content

Commit

Permalink
Update .changeset/beige-ads-melt.md
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Jan 12, 2024
1 parent 38e6351 commit ea87f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/beige-ads-melt.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@latticexyz/store": patch
---

Fixes the functions in `StoreCore` to emit a storage event after calling the `beforeSetRecord` hook, ensuring that storage events are emitted in the same order that values are set on-chain.
Storage events are now emitted after "before" hooks, so that the resulting logs are now correctly ordered and reflect onchain logic. This resolves issues with store writes and event emissions happening in "before" hooks.

0 comments on commit ea87f34

Please sign in to comment.