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
It would be nice if there is some way to access other computed properties in the first argument of createLocalScope. Right now, they are only accessible by this.computedName + '_'.
Here is a working example:
constmyScope=createLocalScope({posts: ({ data })=>data.results||[],filteredPosts: ({ posts_ })=>posts_.filter(post=>post.unread),data: false});
Maybe something like this would be nicer:
constmyScope=createLocalScope({posts: ({ data })=>data.results||[],filteredPosts: (,{ posts })=>posts.filter(post=>post.unread),data: false});
Thank you :)
The text was updated successfully, but these errors were encountered:
It would be nice if there is some way to access other computed properties in the first argument of createLocalScope. Right now, they are only accessible by
this.computedName + '_'
.Here is a working example:
Maybe something like this would be nicer:
Thank you :)
The text was updated successfully, but these errors were encountered: