Some components not really Vuex friendly
-
It seems that for components such a Modal. it might be better to have an isOpen boolean property toggle the display. The current open and close methods cannot be derived from a single Vuex boolean state property (such as showLogin). Using the current toggle method would require knowing if the modal was currently open or not and that is messy/tricky.
This can be worked around but not without extra code making it more complex to use and increase the size of the app. I use modal as an example here, but any component that can be toggled applies here.
-
Hi, will do. Thinking of adding
v-model
support to the toggleable components. -
Totally agree.
-
Can you please open up a github request ticket with “v-model support for toggleable components” so I won’t forget? Thanks!
-
This would be a great feature
-