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

.array() method of a reactive array triggers autorun #269

Open
avalanche1 opened this issue Aug 26, 2016 · 2 comments
Open

.array() method of a reactive array triggers autorun #269

avalanche1 opened this issue Aug 26, 2016 · 2 comments

Comments

@avalanche1
Copy link

I want to get contents of reactive array in autorun without depending on it - similar to vm.property.value.
How can I do that?
If I try to use .array()method of ReactiveArray - it adds a dependency and triggers reruns on array contents change.

@ManuelDeLeon
Copy link
Owner

Tracker.nonReactive

On Aug 26, 2016 1:48 PM, "Kat KatKat" [email protected] wrote:

I want to get contents of reactive array in autorun without depending on
it - similar to vm.property.value.
How can I do that?
If I try to use .array()method of ReactiveArray - it adds a dependency
and triggers reruns on array contents change.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#269, or mute the thread
https://github.com/notifications/unsubscribe-auth/AED31kIUDdqZytsUQAdY4zplbkxMMFFwks5qj0MIgaJpZM4JuaDl
.

@ManuelDeLeon
Copy link
Owner

Now that I think of it .value should give you a non reactive array. I'll
update it later. In the meantime use tracker non reactive.

On Aug 26, 2016 1:49 PM, "Manuel De Leon" [email protected] wrote:

Tracker.nonReactive

On Aug 26, 2016 1:48 PM, "Kat KatKat" [email protected] wrote:

I want to get contents of reactive array in autorun without depending on
it - similar to vm.property.value.
How can I do that?
If I try to use .array()method of ReactiveArray - it adds a dependency
and triggers reruns on array contents change.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#269, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AED31kIUDdqZytsUQAdY4zplbkxMMFFwks5qj0MIgaJpZM4JuaDl
.

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

2 participants