Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDecorators for compatability with vuex-module-decorators #292
Comments
vuex-module-decorators not being an official library, I don't want to directly expose the decorator on vuefire, instead we could add a page to the cookbook docs explaining how to do |
Now that I think about it, I agree - it doesn't belong in this package. I wrote a very simple vuexfire-decorators as a separate package. I'll release it as soon as it's hardened. when combined with @Module
export default class TodoState extends VuexModule {
public todos: Todo[] = [];
@FirestoreBind('todos')
public bindTodosRef() {
return db.collection('todos');
}
} |
I'd like to see how this is done -- @tommyo any chance you could release this or at least show a workaround? |
@tommyo I would also like to see this |
@tommyo same here! |
@tommyo, even if the workaround isn't hardened yet, sharing a loose version to implement in the meantime would be really helpful. |
@tommyo, can you share a link on how did you implement the decorator firestorebind ? Even if it is not ready for productio yet |
Would be great if we could do things like:
Would allow actions and state to be more true to how they look in Vanilla Vuex while also making them typesafe.