vuejs / vuex

🗃️ Centralized State Management for Vue.js.
https://vuex.vuejs.org
MIT License
28.42k stars 9.58k forks source link

is it possible to save the pageKey to an attribute in the store? #2192

Closed johnantoni closed 2 years ago

johnantoni commented 2 years ago

when you create a new element in the store you define a pageKey value,

this.$store.commit('pageState/set', { pageKey: 'accountDetails', componentKey: 'details', value: { firstName: 'john', lastName: 'smith'} });

Is it possible to take that pageKey and save it into the store as { pageKey: 'accountDetails' } so that then when i'm given an object I can know what it is?

vue-bot commented 2 years ago

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!