Closed
Description
Version
4.0.0-rc.2
Reproduction link
https://codesandbox.io/s/romantic-margulis-hq4nb?file=/src/main.js
Steps to reproduce
import { MutationTree } from 'vuex'
import { State } from './type'
const mutations: MutationTree<State> = {
search(state, payload: any) {
state.search = payload;
},
}
What is expected?
state.search is equal to payload
What is actually happening?
state.search remains the same