New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use instanceDefaults before current getter has value #218
Comments
Hi! |
Do you mean there will be no |
Yes,exactly.
But if you still want to use the "current" API you can set it's value by using the setCurrent mutation. |
Thanks, @james2mid and @J3m5. Yes! The "current" workflow is going away. It's pretty easy to create the same thing by providing custom mutations and state in the Also, because the API in 2.0 has been updated to allow full JS/TS classes, you have a TON of flexibility in how things are initialized. "Getters" and "setters" tend to go best in the actual class definition, while other logic can go into the As for this issue, I already gave my two bits about the "current" workflow in the part that @J3m5 has quoted. It would probably be nice to have an example of how to implement the old workflow with custom mutations and state before we close this, but I won't put any of my time into it. There are other things which require my focus. If anybody wants to take a crack at providing an example in the docs, go for it. Otherwise, we can probably close this issue as a "won't fix". Of course, I'm open to further dialogue, if desired. |
Feature Request
Hi! Not sure how you guys feel about this but I think it would be great to be able to set defaults for a service's
current
property before it has a value. I'm assuming this would be an additional option when setting up the service plugin in the store so it could be disabled if the currentnull
value is preferred.If I'm using FeathersVuex in a way that is not encouraged please tell me. At the moment I'm mapping the
current
getter into computed. Also I haven't yet tried to modify thecurrent
object with this method. Would that work being a getter?The text was updated successfully, but these errors were encountered: