question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fix: `$accessor` object does not contain mutations

See original GitHub issue

🐛 The bug The $accessor object contains state variables but no mutations

🛠️ To reproduce Steps to reproduce the behavior:

  1. Create a nuxt application and add some store variables with mutations.
  2. Access the $accessor via middleware’s context.

🌈 Expected behavior Typescript recognizes store mutations.

ℹ️ Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
danielroecommented, May 5, 2021

@SDVII The issue is that the type provided by vuex is interfering with type inference. (See note 1 here.)

Just use a bare object, typing the state each time, or use my helper function which provides type info. (Info at link.)

1reaction
erwanjugandcommented, May 5, 2021

@SDVII The issue is that the type provided by vuex is interfering with type inference. (See note 1 here.)

Just use a bare object, typing the state each time, or use my helper function which provides type info. (Info at link.)

url has changed : https://typed-vuex.roe.dev/mutations 😀

Read more comments on GitHub >

github_iconTop Results From Across the Web

fix: $accessor object does not contain mutations #42 - GitHub
The bug. The $accessor object contains state variables but no mutations. 🛠️ To reproduce. Steps to reproduce the behavior:.
Read more >
c# - How can I protect an accessor only IEnumerable<string ...
The idea is not to mutate the list during enumeration, and see it reflected, the idea is that when you enumerate the sequence...
Read more >
Mutations | Redux Toolkit
Mutations. Overview​. Mutations are used to send data updates to the server and apply the changes to the local cache. Mutations can also ......
Read more >
Lists, mutability, and in-place methods
Given a list containing a bunch of objects, how do we actually access those objects to use in our programs? Iterate through a...
Read more >
Exploration - GDC Docs - National Cancer Institute
Open-access mutation data is displayed by defualt. To access controlled access mutations, users must apply to the correct data access authority, be granted ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found