Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid invalidating getIndexes memo cache on every call #918

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

ricsam
Copy link
Contributor

@ricsam ricsam commented Jan 25, 2025

calculateRange() returns a new object busting the memo cache on every call to getIndexes(). Passing the scalar startIndex and endIndex from calculateRange() fixes this issue.

calculateRange() returns a new object busting the memo cache on every call to getIndexes(). Passing the scalar startIndex and endIndex from calculateRange() fixes this issue.
Copy link

nx-cloud bot commented Jan 27, 2025

View your CI Pipeline Execution ↗ for commit 7717d19.

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 2m 28s View ↗
nx run-many --target=build --exclude=examples/** ✅ Succeeded 18s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-27 10:30:29 UTC

Copy link

pkg-pr-new bot commented Jan 27, 2025

Open in Stackblitz

More templates

@tanstack/angular-virtual

npm i https://pkg.pr.new/@tanstack/angular-virtual@918

@tanstack/solid-virtual

npm i https://pkg.pr.new/@tanstack/solid-virtual@918

@tanstack/lit-virtual

npm i https://pkg.pr.new/@tanstack/lit-virtual@918

@tanstack/svelte-virtual

npm i https://pkg.pr.new/@tanstack/svelte-virtual@918

@tanstack/react-virtual

npm i https://pkg.pr.new/@tanstack/react-virtual@918

@tanstack/virtual-core

npm i https://pkg.pr.new/@tanstack/virtual-core@918

@tanstack/vue-virtual

npm i https://pkg.pr.new/@tanstack/vue-virtual@918

commit: 7717d19

@piecyk piecyk merged commit 386aca7 into TanStack:main Jan 27, 2025
5 checks passed
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