You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that the state object has each resource mapped to a property (such as "comments") . These properties have other properties such as "records", "related" , "filtered" etc. However , when i create a resource, the related property (on which my computed property depends) is not updated, hence the component is not re-rendering. If i were to use an "all" getter("comments/all") instead, this would work perfectly fine, however, it is not the case in this component.
Is there a way in which i can specify which property should update? I could not seem to find any information related to this in the documentation . Am i missing something or is this an issue? If it's an issue , my team and I would be happy to contribute.
Here is some sample code to illustrate what i mean:
P.S. I know that in this case i could use lastCreated, but I am wondering if there's a way for the component to automatically update (like it does if i use the "comments/all" getter), without my interceding. The same goes for deleting.
Thank you for your time!
The text was updated successfully, but these errors were encountered:
DenisaHalmaghi
changed the title
Automatic update for related
Automatic update for related?
Oct 28, 2020
Hello there!
I'm a bit confused about a feature.
I've noticed that the state object has each resource mapped to a property (such as "comments") . These properties have other properties such as "records", "related" , "filtered" etc. However , when i create a resource, the related property (on which my computed property depends) is not updated, hence the component is not re-rendering. If i were to use an "all" getter("comments/all") instead, this would work perfectly fine, however, it is not the case in this component.
Is there a way in which i can specify which property should update? I could not seem to find any information related to this in the documentation . Am i missing something or is this an issue? If it's an issue , my team and I would be happy to contribute.
Here is some sample code to illustrate what i mean:
P.S. I know that in this case i could use lastCreated, but I am wondering if there's a way for the component to automatically update (like it does if i use the "comments/all" getter), without my interceding. The same goes for deleting.
Thank you for your time!
The text was updated successfully, but these errors were encountered: