Add the ability to specify a subfield
yarkovaleksei opened this issue · 1 comments
yarkovaleksei commented
I want to use this syntax:
@State('foo.nested.bar') bar
Now for these purposes I have to specify the function from which I return the field I need.
@State(state => state.foo.nested.bar) bar
ktsn commented
I'm not willing to add such feature because:
- It's impossible to type check.
- It would provide poor error message if there is typo on property name.
- Vuex does not support that.