Skip to content

upgrade: virtual package upgrade for Solid 2.0#876

Draft
davedbase wants to merge 1 commit intosolidjs-community:nextfrom
davedbase:update/v2/virtual
Draft

upgrade: virtual package upgrade for Solid 2.0#876
davedbase wants to merge 1 commit intosolidjs-community:nextfrom
davedbase:update/v2/virtual

Conversation

@davedbase
Copy link
Copy Markdown
Member

  • Bumps peer/dev dependencies to solid-js@2.0.0-beta.10 and @solidjs/web@2.0.0-beta.10
  • createVirtualList now returns [Accessor<VirtualState>, onScroll] — the first element is reactive and must be called to read state
  • VirtualList children signature updated to (item: Accessor<T>, index: Accessor<number>) matching Solid 2.0's <For> behavior
  • Internal scroll offset signal uses { ownedWrite: true } to allow writes from the scroll event handler
  • Adds a per-package vitest.config.ts using a custom Babel plugin with babel-preset-solid@2.0.0-experimental.16 to fix a JSX transform incompatibility (vite-plugin-solid@2.11.12 generates single-argument _$effect() calls which are incompatible with @solidjs/web's two-argument effect() requirement)
  • Overrides jsxImportSource: "@solidjs/web" in tsconfig.json so TypeScript resolves JSX types from the correct package

@davedbase davedbase added this to the Solid 2.0 Migration milestone May 5, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 5, 2026

🦋 Changeset detected

Latest commit: 49acc0f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@solid-primitives/virtual Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant