Skip to content

Commit d42cafc

Browse files
committed
fix: added missing changes for lodash removal
1 parent a7ef7e8 commit d42cafc

File tree

5 files changed

+406
-624
lines changed

5 files changed

+406
-624
lines changed

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@babel/runtime": "^7.20.0",
3131
"@react-native/eslint-config": "^0.74.0",
3232
"@react-native/metro-config": "^0.74.0",
33-
"@types/lodash": "^4.14.195",
33+
"@types/lodash": "^4.17.16",
3434
"@types/metro-config": "^0.76.3",
3535
"babel-plugin-module-resolver": "^5.0.0",
3636
"metro-react-native-babel-preset": "^0.76.9",

example/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@
17021702
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841"
17031703
integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==
17041704

1705-
"@types/lodash@^4.14.195":
1705+
"@types/lodash@^4.17.16":
17061706
version "4.17.16"
17071707
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.16.tgz#94ae78fab4a38d73086e962d0b65c30d816bfb0a"
17081708
integrity sha512-HX7Em5NYQAXKW+1T+FiuG27NGwzJfCX3s1GjOa7ujxZa52kjJLOr4FUxT+giF6Tgxv1e+/czV/iTtBw27WTU9g==

package-lock.json

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/handlers/ScrollToNodeHandler.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { useTreeViewStore } from "../store/treeView.store";
3838
import { useShallow } from "zustand/react/shallow";
3939
import { __FlattenedTreeNode__ } from "../types/treeView.types";
4040
import { typedMemo } from "../utils/typedMemo";
41-
import { isEqual } from "lodash";
41+
import { fastIsEqual } from "fast-is-equal";
4242

4343
interface Props<ID> {
4444
storeId: string;
@@ -131,7 +131,7 @@ function _innerScrollToNodeHandler<ID>(
131131
if (queuedScrollToNodeParams.current === null)
132132
return;
133133

134-
if (!isEqual(
134+
if (!fastIsEqual(
135135
expandAndScrollToNodeQueue,
136136
[ExpandQueueAction.EXPANDED, ExpandQueueAction.RENDERED]
137137
)) {

0 commit comments

Comments
 (0)