Closed titouancreach closed 6 years ago
https://github.com/titouancreach/vuejs-redux/blob/f2086589c695d8ab7adbbf29cc3c92827b357916/index.js#L33
Here we change the state of our state, that cause a rerendering of all our components that depends of at least one store of the store. As react-redux, I should perform a diff to know if I need to mutate the state or not.
https://redux.js.org/docs/faq/ReactRedux.html#react-rendering-too-often
https://github.com/vuejs/babel-plugin-transform-vue-jsx/issues/115
https://github.com/titouancreach/vuejs-redux/blob/f2086589c695d8ab7adbbf29cc3c92827b357916/index.js#L33
Here we change the state of our state, that cause a rerendering of all our components that depends of at least one store of the store. As react-redux, I should perform a diff to know if I need to mutate the state or not.