Skip to content

upgrade: scheduled adapted to Solid-2.0#855

Draft
davedbase wants to merge 2 commits intosolidjs-community:nextfrom
davedbase:update/v2/scheduled
Draft

upgrade: scheduled adapted to Solid-2.0#855
davedbase wants to merge 2 commits intosolidjs-community:nextfrom
davedbase:update/v2/scheduled

Conversation

@davedbase
Copy link
Copy Markdown
Member

  • Bumped peer deps to solid-js@^2.0.0-beta.10; added @solidjs/web@^2.0.0-beta.10 as peer dep
  • Replaced isServer import from solid-js/web@solidjs/web
  • Renamed getListenergetObserver (Solid 2.0 API rename)
  • Added { ownedWrite: true } to createScheduled's internal signal — required when leading-edge schedules fire the invalidation callback synchronously from within an effect's compute phase
  • Rewrote test/create-scheduled.test.ts: replaced createComputed (removed in 2.0) with two-arg createEffect + explicit flush() calls; discovered that writes to the internal signal from within a compute phase are deferred to the next flush (Solid 2.0 cycle prevention), so leading-edge schedules return true on the first flush and false on the second
  • Updated README's createScheduled example to the two-arg createEffect pattern required by Solid 2.0

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 3, 2026

🦋 Changeset detected

Latest commit: 334caad

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

This PR includes changesets to release 4 packages
Name Type
@solid-primitives/scheduled Major
@solid-primitives/memo Patch
@solid-primitives/date Patch
@solid-primitives/deep Patch

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

@davedbase davedbase changed the title Update/v2/scheduled update: scheduled adapted to Solid-2.0 May 3, 2026
@davedbase davedbase changed the title update: scheduled adapted to Solid-2.0 upgrade: scheduled adapted to Solid-2.0 May 3, 2026
@davedbase davedbase added this to the Solid 2.0 Migration milestone May 3, 2026
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