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

Expose a query as an updating array #5

Open
mitar opened this issue Mar 12, 2018 · 0 comments
Open

Expose a query as an updating array #5

mitar opened this issue Mar 12, 2018 · 0 comments

Comments

@mitar
Copy link
Member

mitar commented Mar 12, 2018

Instead of exposing it is a a cursor, we could expose results from an query as an array which gets updated using its native methods (which Vue overrides). This might be better than current approach where we expose it as a cursor and patch Vue to support iteration over it. Not sure though how much does Vue do with patching native methods: do they just trigger reactive invalidation or does it also take into the account what exactly changed in an array and optimize based on that?

Code here is doing such changes.

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