From 2d9f336aedf682c7a278d3a516dc53314ac3cb47 Mon Sep 17 00:00:00 2001 From: Bart Spaans <143680439+spaansba@users.noreply.github.com> Date: Tue, 19 Aug 2025 23:08:52 +0200 Subject: [PATCH] fix: plugin ID generation to include index when using the plugin name --- packages/devtools/src/context/devtools-context.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devtools/src/context/devtools-context.tsx b/packages/devtools/src/context/devtools-context.tsx index cb808457..30302256 100644 --- a/packages/devtools/src/context/devtools-context.tsx +++ b/packages/devtools/src/context/devtools-context.tsx @@ -85,7 +85,7 @@ const generatePluginId = (plugin: TanStackDevtoolsPlugin, index: number) => { } if (typeof plugin.name === 'string') { // if name is a string, use it to generate an id - return plugin.name.toLowerCase().replace(' ', '-') + return `${plugin.name.toLowerCase().replace(' ', '-')}-${index}` } // Name is JSX? return the index as a string return index.toString()