"@solidjs/start": "1.0.6",
"@tanstack/solid-virtual": "^3.8.6",
"solid-js": "^1.8.21",
~~1. Virtualizer is not reactive unless wrapped with an arrow function. I tried getter from #661 and createMemo, but neither worked.
Virtual lists with initial count > 0 caused hydration mismatch errors on refresh and won not render the list at fisrt when navigate to that page.~~
(This is caused by the callback ref, replace it with a variable and everything will work fine.)
createVirtualizer should be reactive when using with solid / solid-start without wrap with any functions and memos.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Windows 11
Chrome 127.0.6533.100
tanstack-virtual version
v3.8.6
TypeScript version
v5.6.0
Additional context
No response
Terms & Code of Conduct
[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Describe the bug
"@solidjs/start": "1.0.6", "@tanstack/solid-virtual": "^3.8.6", "solid-js": "^1.8.21", ~~1. Virtualizer is not reactive unless wrapped with an arrow function. I tried getter from #661 and createMemo, but neither worked.
Your minimal, reproducible example
https://codesandbox.io/p/github/Huliiiiii/tanstack_virtual_issues_repro/main?import=true
Steps to reproduce
Check sandbox
Expected behavior
createVirtualizer should be reactive when using with solid / solid-start without wrap with any functions and memos.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Windows 11 Chrome 127.0.6533.100
tanstack-virtual version
v3.8.6
TypeScript version
v5.6.0
Additional context
No response
Terms & Code of Conduct