Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(store): emit store events before early return #381

Merged
merged 4 commits into from
Feb 8, 2023
Merged

Conversation

alvrs
Copy link
Member

@alvrs alvrs commented Feb 8, 2023

We were emitting events at the end of StoreCore's setRecord, setField and deleteRecord methods, but an early return if there is no dynamic data prevented the events from being emitted for schemas with only static fields.

Also added some test cases to make sure we're emitting the expected events.

holic
holic previously approved these changes Feb 8, 2023
@alvrs alvrs requested a review from holic February 8, 2023 21:36
holic
holic previously approved these changes Feb 8, 2023
@alvrs alvrs merged commit 3b58a1f into v2 Feb 8, 2023
@alvrs alvrs deleted the alvrs/eventfix branch February 8, 2023 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants