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
The main issue that I'm having is that it's not reactive in Vue 3 computed property, but in Vue 3 HTML template it actually is reactive - if service state changes, I can see those changes in HTML.
I tried to use reactive, toRef, register Slip service as plugin, but the computed value addedSelection just wont update after Slip.addedEvents has a new element pushed/removed.
The text was updated successfully, but these errors were encountered:
Hello sorry I have been a little preoccupied, I'm glad you found a solution. As you can see I also raised this in #24 and came up with the same conclusion. I'm not entirely sure this is an ideal fix but I haven't thought of anything better yet.
Any tips how I can make angular.js services state reactive with Vue 3 computed property?
My service
Slip
:This is how I register and export angular.js service:
In the Vue 3 component I import it:
The main issue that I'm having is that it's not reactive in Vue 3 computed property, but in Vue 3 HTML template it actually is reactive - if service state changes, I can see those changes in HTML.
I tried to use
reactive
,toRef
, registerSlip
service as plugin, but the computed valueaddedSelection
just wont update afterSlip.addedEvents
has a new element pushed/removed.The text was updated successfully, but these errors were encountered: