// limited lifespan for getters.
// add a dev only variable that is removed in unmounted and replace the store
let hasSubscribed = true
+ const storeType = '🍍 ' + store.$id
if (!registeredStores.has(store.$id)) {
registeredStores.set(store.$id, store)
- componentStateTypes.push('🍍 ' + store.$id)
+ componentStateTypes.push(storeType)
hasSubscribed = false
}
Object.values(piniaStores).forEach((store) => {
payload.instanceData.state.push({
- type: '🍍 ' + store.$id,
+ type: storeType,
key: 'state',
editable: true,
value: store.$state,
if (store._getters && store._getters.length) {
payload.instanceData.state.push({
- type: '🍍 ' + store.$id,
+ type: storeType,
key: 'getters',
editable: false,
value: store._getters.reduce((getters, key) => {