How can I do a deep comparison in store.$subscribe? #2741
Unanswered
SirH3nry
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of the properties in my store is an object that gets replaced with another potentially equal object, but it's still triggering the callback. I'm not against using a third party equality check, but how do I access
newValue
andoldValue
onmutation
without typescript telling me it doesn't exist?Edit: I just noticed the warning on mutation.events to not use it in production code. So now I'm not sure what to do.
Beta Was this translation helpful? Give feedback.
All reactions