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
A example:
import { defineStore } from 'pinia' export const useFormData = defineStore('formData', { state: () => { return { arr: [{a:1}], obj: {a: 1} } } })
import { useFormData } from '...' export default { setup() { const formDataStore = useFormData() formDataStore.$subscribe((mutation, state) => { console.log(mutation, state) }) }, }
now, if i change formData.arr[0].a = 2, mutation will callback mutation.event.key = 'a', but i want get full path like arr[0].a
formData.arr[0].a = 2
mutation.event.key = 'a'
arr[0].a
Can add an attribute to mutation.event to identify the direct's full path?
No response
The text was updated successfully, but these errors were encountered:
events come from Vue: https://vuejs.org/guide/extras/reactivity-in-depth.html#reactivity-debugging
events
Note this is development only, it will be empty in production, it's only for debugging purposes
There are plans to make the display of it better in devtools already (See #732)
Sorry, something went wrong.
No branches or pull requests
What problem is this solving
A example:
now, if i change
formData.arr[0].a = 2
, mutation will callbackmutation.event.key = 'a'
, but i want get full path likearr[0].a
Proposed solution
Can add an attribute to mutation.event to identify the direct's full path?
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: