@tanstack/react-router-devtools 0.0.1-alpha.3 → 0.0.1-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/react-router-devtools",
3
3
  "author": "Tanner Linsley",
4
- "version": "0.0.1-alpha.3",
4
+ "version": "0.0.1-alpha.4",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
7
  "homepage": "https://react-router.tanstack.com/",
@@ -35,7 +35,7 @@
35
35
  "src"
36
36
  ],
37
37
  "peerDependencies": {
38
- "@tanstack/react-router": "0.0.1-alpha.3",
38
+ "@tanstack/react-router": "0.0.1-alpha.4",
39
39
  "react": ">=16",
40
40
  "react-dom": ">=16"
41
41
  },
package/src/Explorer.tsx CHANGED
@@ -121,7 +121,7 @@ export const DefaultRenderer: Renderer = ({
121
121
  }
122
122
 
123
123
  return (
124
- <Entry key={label as string}>
124
+ <Entry>
125
125
  {subEntryPages.length ? (
126
126
  <>
127
127
  <ExpandButton onClick={() => toggleExpanded()}>
@@ -273,8 +273,11 @@ export default function Explorer({
273
273
  const subEntryPages = chunkArray(subEntries, pageSize)
274
274
 
275
275
  return renderer({
276
- HandleEntry: ({ entry }) => (
277
- <Explorer value={value} renderer={renderer} {...rest} {...entry} />
276
+ HandleEntry: React.useCallback(
277
+ ({ entry }) => (
278
+ <Explorer value={value} renderer={renderer} {...rest} {...entry} />
279
+ ),
280
+ [value, renderer],
278
281
  ),
279
282
  type,
280
283
  subEntries,