Skip to content

feat: add angular devtools support and fix core devtools reactivity#6248

Draft
riccardoperra wants to merge 6 commits into
alphafrom
feat/angular-devtools
Draft

feat: add angular devtools support and fix core devtools reactivity#6248
riccardoperra wants to merge 6 commits into
alphafrom
feat/angular-devtools

Conversation

@riccardoperra
Copy link
Copy Markdown
Collaborator

TanStack Devtools Angular package is not published yet in npm

  • add new @tanstack/angular-table-devtools package
  • add devtools integration in composable tables

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 9, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 60a990fc-4236-4915-8924-022b2765d6f7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/angular-devtools

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@riccardoperra riccardoperra changed the title feat: add angular devtools feat: integrate angular devtools May 9, 2026
@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented May 9, 2026

View your CI Pipeline Execution ↗ for commit cd854d6

Command Status Duration Result
nx affected --targets=test:eslint,test:sherif,t... ✅ Succeeded 1m 50s View ↗
nx run-many --targets=build --exclude=examples/** ✅ Succeeded 14s View ↗

☁️ Nx Cloud last updated this comment at 2026-05-19 13:40:18 UTC

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 9, 2026

More templates

@tanstack/angular-table

npm i https://pkg.pr.new/TanStack/table/@tanstack/angular-table@6248

@tanstack/angular-table-devtools

npm i https://pkg.pr.new/TanStack/table/@tanstack/angular-table-devtools@6248

@tanstack/lit-table

npm i https://pkg.pr.new/TanStack/table/@tanstack/lit-table@6248

@tanstack/match-sorter-utils

npm i https://pkg.pr.new/TanStack/table/@tanstack/match-sorter-utils@6248

@tanstack/preact-table

npm i https://pkg.pr.new/TanStack/table/@tanstack/preact-table@6248

@tanstack/preact-table-devtools

npm i https://pkg.pr.new/TanStack/table/@tanstack/preact-table-devtools@6248

@tanstack/react-table

npm i https://pkg.pr.new/TanStack/table/@tanstack/react-table@6248

@tanstack/react-table-devtools

npm i https://pkg.pr.new/TanStack/table/@tanstack/react-table-devtools@6248

@tanstack/solid-table

npm i https://pkg.pr.new/TanStack/table/@tanstack/solid-table@6248

@tanstack/solid-table-devtools

npm i https://pkg.pr.new/TanStack/table/@tanstack/solid-table-devtools@6248

@tanstack/svelte-table

npm i https://pkg.pr.new/TanStack/table/@tanstack/svelte-table@6248

@tanstack/table-core

npm i https://pkg.pr.new/TanStack/table/@tanstack/table-core@6248

@tanstack/table-devtools

npm i https://pkg.pr.new/TanStack/table/@tanstack/table-devtools@6248

@tanstack/vue-table

npm i https://pkg.pr.new/TanStack/table/@tanstack/vue-table@6248

@tanstack/vue-table-devtools

npm i https://pkg.pr.new/TanStack/table/@tanstack/vue-table-devtools@6248

commit: 9eee81f

Copy link
Copy Markdown

@nx-cloud nx-cloud Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

At least one additional CI pipeline execution has run since the conclusion below was written and it may no longer be applicable.

Nx Cloud is proposing a fix for your failed CI:

We resolved two CI failures introduced by the angular devtools integration. The sherif failure was fixed by reordering dependencies alphabetically in the composable-tables example, and the knip failures were fixed by removing the unused @tanstack/angular-devtools dependency from the package, adding the missing tslib dependency required by importHelpers, and removing the export keyword from the internal-only generateId function.

Tip

We verified this fix by re-running table:test:sherif, table:test:knip.

Suggested Fix changes
diff --git a/examples/angular/composable-tables/package.json b/examples/angular/composable-tables/package.json
index 2663831d..3d441290 100644
--- a/examples/angular/composable-tables/package.json
+++ b/examples/angular/composable-tables/package.json
@@ -19,8 +19,8 @@
     "@angular/router": "^21.2.11",
     "@faker-js/faker": "^10.4.0",
     "@tanstack/angular-devtools": "https://pkg.pr.new/TanStack/devtools/@tanstack/angular-devtools@368",
-    "@tanstack/angular-table-devtools": "^9.0.0-alpha.43",
     "@tanstack/angular-table": "^9.0.0-alpha.45",
+    "@tanstack/angular-table-devtools": "^9.0.0-alpha.43",
     "rxjs": "~7.8.2",
     "tslib": "^2.8.1"
   },
diff --git a/packages/angular-table-devtools/package.json b/packages/angular-table-devtools/package.json
index 7bf1bf22..2df42e78 100644
--- a/packages/angular-table-devtools/package.json
+++ b/packages/angular-table-devtools/package.json
@@ -44,10 +44,10 @@
     "src"
   ],
   "dependencies": {
-    "@tanstack/angular-devtools": "https://pkg.pr.new/TanStack/devtools/@tanstack/angular-devtools@368",
     "@tanstack/devtools-utils": "https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-utils@368",
     "@tanstack/table-core": "workspace:*",
-    "@tanstack/table-devtools": "workspace:*"
+    "@tanstack/table-devtools": "workspace:*",
+    "tslib": "^2.8.1"
   },
   "peerDependencies": {
     "@angular/core": ">=21.0.0"
diff --git a/packages/angular-table-devtools/src/injectTanStackTableDevtools.ts b/packages/angular-table-devtools/src/injectTanStackTableDevtools.ts
index 40303e30..e769ae3b 100644
--- a/packages/angular-table-devtools/src/injectTanStackTableDevtools.ts
+++ b/packages/angular-table-devtools/src/injectTanStackTableDevtools.ts
@@ -24,7 +24,7 @@ function normalizeName(name?: string) {
 }
 
 let autoId = 0
-export function generateId(): string {
+function generateId(): string {
   const appId = inject(APP_ID)
   return `tanstacktable-${appId}_${autoId++}${Date.now().toString(36)}`
 }

Apply fix via Nx Cloud  Reject fix via Nx Cloud


Or Apply changes locally with:

npx nx-cloud apply-locally DsIG-vU7o

Apply fix locally with your editor ↗   View interactive diff ↗



🎓 Learn more about Self-Healing CI on nx.dev

@riccardoperra riccardoperra force-pushed the feat/angular-devtools branch 2 times, most recently from 9a3e490 to d397a99 Compare May 9, 2026 08:05
@riccardoperra riccardoperra changed the title feat: integrate angular devtools feat(angular): integrate angular devtools May 9, 2026
@riccardoperra riccardoperra force-pushed the feat/angular-devtools branch 2 times, most recently from 5b002f3 to 926dcf9 Compare May 17, 2026 12:21
@riccardoperra riccardoperra changed the title feat(angular): integrate angular devtools feat: add angular devtools support and fix core devtools reactivity May 19, 2026
@riccardoperra riccardoperra force-pushed the feat/angular-devtools branch from 17bc739 to cd854d6 Compare May 19, 2026 13:24
Refactor devtools panel with a more solid-idiomatic approach, using memo and dynamic `useTableState` subscription via Accessor getter to not break reactivity.
@socket-security
Copy link
Copy Markdown

socket-security Bot commented May 19, 2026

@socket-security
Copy link
Copy Markdown

socket-security Bot commented May 19, 2026

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn Medium
Low adoption: npm eslint-plugin-react-jsx

Location: Package overview

From: pnpm-lock.yamlnpm/@eslint-react/eslint-plugin@5.8.1npm/eslint-plugin-react-jsx@5.8.1

ℹ Read more on: This package | This alert | What are unpopular packages?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Unpopular packages may have less maintenance and contain other problems.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/eslint-plugin-react-jsx@5.8.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@riccardoperra riccardoperra force-pushed the feat/angular-devtools branch from 2967e10 to 20b40f9 Compare May 19, 2026 13:30
@riccardoperra riccardoperra force-pushed the feat/angular-devtools branch from 20b40f9 to bdd89ba Compare May 19, 2026 13:35
@@ -137,6 +141,12 @@ export function useTable<
tableOptions: TableOptions<TFeatures, TData>,
selector?: (state: TableState<TFeatures>) => TSelected,
): ReactTable<TFeatures, TData, TSelected> {
const instanceIdRef = useRef<string | undefined>(undefined)
const id = useId()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this technically makes this a React 18+ package now. We could just require an id/key table option in order for devtools to work, and then remove the 2nd arg from useTanStackTableDevtools(table)

Copy link
Copy Markdown
Collaborator Author

@riccardoperra riccardoperra May 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about removing entirely useId 🤔 ? There is still the generation logic provided next. it was just added as a prefix but probably unnecessary

-  const id = useId()
   if (!instanceIdRef.current) {
    // eslint-disable-next-line @eslint-react/purity
-     instanceIdRef.current = `${id}-${Math.random().toString(36).slice(2, 9)}`
+     instanceIdRef.current = Math.random().toString(36).slice(2, 9);
   }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants