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 bug with RefCount and ObservableDatoms #88

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Conversation

halgari
Copy link
Contributor

@halgari halgari commented Aug 8, 2024

The key change here is that we use .Select((itm, idx) =>) to know when we are at the start of the observable. However we also deduplicate identical DBs. When a RefCount restarts we get a idx of 0 as we should, but we get the same DB again, and so the 0 was being filtered out, so we weren't re-priming the datasets causing this error

@halgari halgari merged commit d35b2c0 into main Aug 8, 2024
2 of 4 checks passed
@halgari halgari deleted the refcount-observables branch August 8, 2024 18:42
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.

1 participant