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: View changed not propagating #40

Merged
merged 2 commits into from
Mar 27, 2024
Merged

fix: View changed not propagating #40

merged 2 commits into from
Mar 27, 2024

Conversation

arv
Copy link
Contributor

@arv arv commented Mar 15, 2024

No description provided.

@arv arv requested a review from tantaman March 15, 2024 13:57
@@ -65,7 +65,7 @@ class AbstractTreeView<T> extends AbstractView<T, T[]> {

let newData = this.#data;
for (const c of collections) {
[changed, newData] = this.#sink(c, newData) || changed;
[changed, newData] = this.#sink(c, newData, changed);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was stepping through the code and found this strange code.

this.#sink never returns a falsey value.

It seems to me based on looking at the code that changed could go from true to false if some later collection does not change anything.

@arv arv force-pushed the arv/view-changed branch from 78faf24 to beea90e Compare March 22, 2024 11:39
@arv arv enabled auto-merge (squash) March 27, 2024 09:53
@arv arv merged commit d6779ff into main Mar 27, 2024
4 checks passed
@arv arv deleted the arv/view-changed branch March 27, 2024 09: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