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

ObservableSet.size is not observable #2

Open
iownbey opened this issue Nov 5, 2024 · 0 comments
Open

ObservableSet.size is not observable #2

iownbey opened this issue Nov 5, 2024 · 0 comments

Comments

@iownbey
Copy link
Contributor

iownbey commented Nov 5, 2024

const set = observable(new Set());

reaction(() => set.size, (size) => console.log("size changed"));

set.add(7);

This code isn't triggering a reaction due to a missing wrapper around the native Set.size call

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

No branches or pull requests

1 participant