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

Add fine-grained reactivity for cursors #3

Open
red-meadow opened this issue Nov 5, 2021 · 0 comments
Open

Add fine-grained reactivity for cursors #3

red-meadow opened this issue Nov 5, 2021 · 0 comments

Comments

@red-meadow
Copy link

First of all, thank you very much for both Vue 2 and Vue 3 integrations!

The current approach with Tracker.autorun(() => { ... cursor.fetch() ... }) causes unnecessary invalidation of all objects in the array, even if only few of them were changed. Using cursor.observe() instead allows for precise invalidation. It also prevents unnecessary calls of transform function if it is passed to a cursor.

This approach is successfully used by Svelte and Blaze integrations.

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