How to watch
/$subscribe
getters?
#1227
Answered
by
varna
varna
asked this question in
Help and Questions
Replies: 1 comment
-
import { useMapStore } from '@/stores/map'
import { watch } from '@vue/composition-api'
import { storeToRefs } from 'pinia'
const store = useMapStore()
const { FeatureCollection } = storeToRefs(store)
watch(FeatureCollection, handleUpdate) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
varna
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use a reactive library, so I need to pass updated getter data to it every time it updates:
$subscribe
sounded logical, but it ignoresgetters
.Beta Was this translation helpful? Give feedback.
All reactions