Skip to content

new: orientation primitive for Solid 2.0#885

Open
davedbase wants to merge 1 commit intosolidjs-community:nextfrom
davedbase:v2/orientation
Open

new: orientation primitive for Solid 2.0#885
davedbase wants to merge 1 commit intosolidjs-community:nextfrom
davedbase:v2/orientation

Conversation

@davedbase
Copy link
Copy Markdown
Member

  • Adds a new orientation package (Stage 0 / Sensors) targeting Solid.js 2.0 beta.10
  • makeOrientation(onChange) — non-reactive, attaches a listener for screen.orientation change events and returns a cleanup function
  • createOrientation() — reactive, returns angle and type signals initialized to the current screen orientation and updated on each change; SSR-safe (returns static defaults server-side)
  • Falls back to the deprecated window.orientationchange event on browsers without screen.orientation

@davedbase davedbase added enhancement New feature or request solid-2.0 labels May 8, 2026
@davedbase davedbase marked this pull request as ready for review May 8, 2026 22:05
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 8, 2026

🦋 Changeset detected

Latest commit: 2372425

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

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

Labels

enhancement New feature or request solid-2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant