Skip to content

docs: migrate virtual examples to TanStack Virtual - #55

Open
pupuking723 wants to merge 1 commit into
downshift-js:masterfrom
pupuking723:fix/tanstack-react-virtual-example
Open

docs: migrate virtual examples to TanStack Virtual#55
pupuking723 wants to merge 1 commit into
downshift-js:masterfrom
pupuking723:fix/tanstack-react-virtual-example

Conversation

@pupuking723

Copy link
Copy Markdown

Addresses downshift-js/downshift#1654.

This migrates the existing useCombobox and useSelect virtualization examples from react-virtual v2 to @tanstack/react-virtual v3. The integration remains in the examples repository, so Downshift itself does not gain a runtime dependency.

The highlighted-index handlers now also ignore negative indexes before asking the virtualizer to scroll, which covers menu reset/close transitions.

Verification:

  • NODE_OPTIONS=--openssl-legacy-provider npm run build
  • repeated the production build with both virtual example modules temporarily imported by the entry point, confirming both compile through the CRA/webpack pipeline
  • pnpm dlx prettier@2.8.8 --check package.json src/hooks/useCombobox/react-virtual.js src/hooks/useSelect/react-virtual.js
  • git diff --check

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.

1 participant