Skip to content

Commit

Permalink
Replace fast-deep-equal with fast-deep-equal/react
Browse files Browse the repository at this point in the history
avoid traversing React's _owner property
  • Loading branch information
amoshydra committed Mar 5, 2022
1 parent 317dd4a commit 5175caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tree-changes-hook/src/index.ts
@@ -1,5 +1,5 @@
import { useEffect, useRef } from 'react';
import * as equal from 'fast-deep-equal';
import * as equal from 'fast-deep-equal/react';
import treeChanges, { Data, KeyType, TreeChanges } from 'tree-changes';

export default function useTreeChanges<T extends Data>(value: T) {
Expand Down

0 comments on commit 5175caf

Please sign in to comment.