Skip to content

Commit 6efeeb3

Browse files
committed
fix: react-hooks/exhaustive-deps
1 parent 18805db commit 6efeeb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const List: React.FunctionComponent<ListProps> = ({
6161
return [keyManager.keys[pathName], namePath.slice(len + 1)];
6262
},
6363
}),
64-
[prefixName],
64+
[prefixName, keyManager.keys],
6565
);
6666

6767
// User should not pass `children` as other type.

0 commit comments

Comments
 (0)