Watcher does not detect changes occured to an array of objects
I am using vue3 with options api as shown in the section titled code. I set an object to a store. storeTest.vue shows how the Store
is implemented, and in watch it shows how I listen to changes that occurred in the store.
Store gets called even if set to the same value more than once
i am using vue3 with options api
How to send array of object via a store
i am using vue3 with options api
as shown in the section titled code
, i set an object to a store
. in section storeTest.vue
it shows how the store
is implemented, and in watch
it shows how i listen to changes occured to the store
.
at run time, despite there are values assigned to either of geojson
and order
, the watch
statement does not report any changes occured. i expect that the values assigned to geojson
and order
are to be printed in the console,
but nothing gets displayed