Skip to content

Add fine-grained reactivity for cursors #3

Open
@red-meadow

Description

@red-meadow

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions