Skip to content
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

got error when use @Mutation in app.config.errorHandler #371

Open
LitStronger opened this issue Jul 11, 2021 · 2 comments
Open

got error when use @Mutation in app.config.errorHandler #371

LitStronger opened this issue Jul 11, 2021 · 2 comments

Comments

@LitStronger
Copy link

runtime-core.esm-bundler.js:408 Uncaught (in promise) Error: Maximum recursive updates exceeded. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.
at checkRecursiveUpdates (runtime-core.esm-bundler.js:408)
at flushJobs

the code
in main.ts

app.config.errorHandler = (err, vm, info) => {
  console.log(err, vm, info);
  errorStore.commitCount(1);
};

in store.ts

import { VuexModule, getModule, Module, Mutation } from "vuex-module-decorators";
  @Mutation
  commitCount(extra: any) {
    this.count += extra;
}

who can tell me why?

@LitStronger
Copy link
Author

image

@cuebit
Copy link

cuebit commented Jul 12, 2021

This is unrelated to vuex-module-decorators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants