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 re-entrancy fix regression #763

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Conversation

michalrentka
Copy link
Contributor

As pointed out in #733 (comment) the state didn't get updated properly in loadAttributedComment because the reentrancy fix blocked out properly storing of state (self.stateObservable.accept(state) wasn't called). I switched from BehaviorRelay to PublishSubject. Now I can control when to send notifications to observers and state is stored in the ViewModel` directly, which makes more sense anyway. So RxSwift and Combine implementations are now the same.

@michalrentka michalrentka merged commit 8eecbc7 into zotero:master Sep 11, 2023
1 check passed
@michalrentka michalrentka deleted the bugfix branch November 6, 2023 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants