You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the getter returns an object or an array, this causes a recalculation of the properties that depend on this getter, even if the data in the object that returned the getter did not change. Can I somehow return the result of a previous getter calculation if the data has not really changed?
What problem does this feature solve?
If the getter returns an object or an array, this causes a recalculation of the properties that depend on this getter, even if the data in the object that returned the getter did not change. Can I somehow return the result of a previous getter calculation if the data has not really changed?
What does the proposed API look like?
someGetter(state, getters, rootState, rootGetters, oldValue) { ... if (JSON.stringify(result) === JSON.stringify(oldValue)) return oldValue; return result; }
The text was updated successfully, but these errors were encountered: