Skip to content
Discussion options

You must be logged in to vote

So I ended up using the compare function like so :

compare: (_old, _new) => {
        // first time we get data
        if (!_old || !_new) return false;
        // bad new version -> do not change stale data
        if (!_new.whatever || isEmpty(_new.whatever)) // isEmpty is a lodash function
          return true;
        return dequal(_old, _new);
      }

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ErnestBrandi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ErnestBrandi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants