-
-
Notifications
You must be signed in to change notification settings - Fork 245
v-for not re-rendering multiple computed values when associated data is changed. #240
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
Comments
We have figured out a temporary solution on slack - wrap every |
We got exactly the same issue, but there is just one v-for. Our app has a search page, where the first search without any filter gives roughly 138 results (all items) where results are rendered by:
A second search will hang the UI with exactly the same error. The weird thing is when we do first search with some filter applied, and results count are roughly 50 rows, the next search won't hang and it works correctly as long as we don't do a search when no filter is applied. There is only one Since repeated search (with some filter applied) always works correctly, and it only hangs when we do a search after a search without filter, which means listing all items. I start to suspect the However it introduces another minor issue. I run the app by
App continues to work correctly though. Guess this might be related? Edit: When commenting out |
@starryalley interesting that setting the key to a random value solves this...
Yes, I would say that's too much, consider using a ListView, which in return would only create (depending on the visible area) about 10 rows with 5 labels, and as you scroll update them (view recycling). That's 690 views vs ~50, quite a difference! |
We are locking this issue because it has been closed for more than 14 days. If the issue comes up again please open a new issue with additional details. |
Version
1.3.1
Reproduction link
https://play.nativescript.org/?template=play-vue&id=H8Tsz0&v=11https://play.nativescript.org/?template=play-vue&id=H8Tsz0&v=11https://play.nativescript.org/?template=play-vue&id=H8Tsz0&v=11https://play.nativescript.org/?template=play-vue&id=H8Tsz0&v=11
Platform and OS info
iOS 11.3.1 / NativeScript 3 ( & 4) / MacOS 10.13.4
Steps to reproduce
What is expected?
The list to show all titles in the 3 lists that contain bar
What is actually happening?
Fails on second search.
Partial Logs:
[iPhoneTestDevice]: 'You are searching for [Foo]'
[iPhoneTestDevice]: '{NSVue (Vue: 2.5.13 | NSVue: 1.3.1)} -> ParentNode(ElementNode(stacklayout))'
[iPhoneTestDevice]: '{NSVue (Vue: 2.5.13 | NSVue: 1.3.1)} -> RemoveChild(ElementNode(stacklayout), ElementNode(stacklayout))'
[iPhoneTestDevice]: '{NSVue (Vue: 2.5.13 | NSVue: 1.3.1)} -> ParentNode(ElementNode(stacklayout))'
[iPhoneTestDevice]: '{NSVue (Vue: 2.5.13 | NSVue: 1.3.1)} -> ParentNode(ElementNode(stacklayout))'
[iPhoneTestDevice]: '{NSVue (Vue: 2.5.13 | NSVue: 1.3.1)} -> RemoveChild(ElementNode(stacklayout), ElementNode(stacklayout))'
[iPhoneTestDevice]: '{NSVue (Vue: 2.5.13 | NSVue: 1.3.1)} -> RemoveChild(ElementNode(stacklayout), ElementNode(stacklayout))'
[iPhoneTestDevice]: 'You are searching for [Bar]'
[iPhoneTestDevice]: ERROR: [Vue warn]: Error in nextTick: "Error: Can't insert child, because it is already a child."
Attempting to display 3 lists that are filtered based on a single keyword.
The text was updated successfully, but these errors were encountered: