ta
TanStack
OSS
ta
Pipelines
Nx runs
Insights
Compare tasks
Analytics
Sign in
Toggle Sidebar
ta
table
Pipelines
fix(react-table, preact-table): refresh AppTable context under cached elements (#6631) * fix(react-table, preact-table): refresh AppTable context under cached elements useAppTable builds AppTable once and provides the table from a ref while it renders. When the owner's output is cached (React Compiler, useMemo, memo), the framework skips the stable AppTable element, so its provider keeps the table from an earlier render. Replacing data externally (state, query refetch, websocket) changes no state slice, so useTableContext() consumers kept showing stale rows and Subscribe could not catch it. AppTable now subscribes to the owner's commits and re-renders only when the table it last provided is outdated, so the uncached path renders no extra times. Its component identity stays stable to keep subtrees mounted. Refs #6601 * fix(react-table, preact-table): memoize merged useAppTable options `useAppTable` spread `defaultTableOptions` and the caller's options into a new object on every render, so `useTable` returned a new table each time. With AppTable now refreshing its context whenever the table changes, every unrelated owner render re-rendered all `useTableContext()` consumers, even under a cached AppTable element with memoized options. Memoize the merged options on the caller's options so stable options keep the table, and the context, stable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
nx run-many --targets=test:eslint,test:sherif,test:knip,test:lib,test:types,test:build,build --parallel=4
⌘K
fix(react-table, preact-table): refresh AppTable context under cached elements (#6631)
Canceled
after
1m 34s
Started
read-write
access token used
Copy command
nx run-many --targets=test:eslint,test:sherif,test:knip,test:lib,test:types,test:build,build --parallel=4
main
3d3648f
GitHub
Open on GitHub
Tasks
Resource Usage
ta
TanStack
OSS