Skip to content

Document createIslandSignal for sharing state across Solid islands#14146

Open
matthewp wants to merge 1 commit into
mainfrom
solid-signals
Open

Document createIslandSignal for sharing state across Solid islands#14146
matthewp wants to merge 1 commit into
mainfrom
solid-signals

Conversation

@matthewp

Copy link
Copy Markdown
Contributor

Description

Documents the new createIslandSignal API added in withastro/astro#17159, which allows sharing reactive signals across multiple Solid islands on the same page.

Adds a "Sharing state across islands" subsection to the SolidJS integration guide with:

  • How to create and pass a shared signal from .astro frontmatter
  • How Solid components consume the signal with the standard accessor/setter pattern
  • A note that signals can also be nested inside arrays and objects

@astrobot-houston

Copy link
Copy Markdown
Contributor

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/integrations-guide/solid-js.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown

Preview deployment

✅ Deployment complete!

@matthewp matthewp marked this pull request as draft June 24, 2026 18:26
@matthewp matthewp marked this pull request as ready for review June 24, 2026 18:27

@ArmandPhilippot ArmandPhilippot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Matthew! Except a missing <Since /> I think this looks good.

I was waiting before reviewing/approving because I noticed Chris comment on the implementation PR, and that's true we have a recipe for that. So, I was also curious to know why we need something specific for Solid!

Comment on lines +228 to +229
### Sharing state across islands

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need a <Since /> here, I believe this should be the right version:

Suggested change
### Sharing state across islands
### Sharing state across islands
<Since pkg="@astrojs/solid-js" v="7.1.0" />

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.

3 participants