We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can't manage to make it work.
The main issue i think is with the fieryState "wrapper", etc.
fieryState
Here's my code:
import { Module, VuexModule, Mutation, Action } from "vuex-module-decorators"; import { firebase, auth, StoreDB, functions } from "@/services/fireinit"; import { fieryBindings, fieryActions, fieryMutations, fieryMapMutations, fieryState, FieryRecordSave, FieryRecordRemove } from "fiery-vuex"; import { store } from ".."; class Todo { name: string = ""; done: boolean = false; done_at: Date | null = null; save: FieryRecordSave; remove: FieryRecordRemove; } const TodoOptions = { shared: true, type: Todo, include: ["name", "done", "done_at"], timestamps: ["done_at"], record: true, recordOptions: { save: "save", remove: "remove" } }; @Module({ stateFactory: true, name: "Todo", store: store }) export default class TodoModule extends VuexModule { currentTodo: Todo | null = null; todos: Todo[] = []; // can't use ... operator inside a class so it's broken // I believe we need a decorator. ...fieryState($fiery => { // Duplicate identifier '$fiery'. specificTodo: $fiery(StoreDB.collection('todos').doc(23), TodoOptions) as Todo }) }
The text was updated successfully, but these errors were encountered:
@ClickerMonkey ping
Sorry, something went wrong.
No branches or pull requests
I can't manage to make it work.
The main issue i think is with the
fieryState
"wrapper", etc.Here's my code:
The text was updated successfully, but these errors were encountered: