Skip to content

Add top-level array store examples#1518

Open
singhvishalkr wants to merge 1 commit into
solidjs:mainfrom
singhvishalkr:docs-1094-top-level-array-store
Open

Add top-level array store examples#1518
singhvishalkr wants to merge 1 commit into
solidjs:mainfrom
singhvishalkr:docs-1094-top-level-array-store

Conversation

@singhvishalkr
Copy link
Copy Markdown

The stores documentation shows stores as objects with arrays as properties, but doesn't demonstrate using a store that is itself an array. This can confuse users who want to create a simple list store without wrapping it in an object.

I added a subsection under 'Creating a store' that shows:

  • Creating a store as a top-level array
  • Appending items using the length index
  • Modifying items by index
  • Using filter functions on array stores

Closes #1094

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 16, 2026

Deploy Preview for solid-docs ready!

Name Link
🔨 Latest commit 002d906
🔍 Latest deploy log https://app.netlify.com/projects/solid-docs/deploys/6a0812639bff03000814470c
😎 Deploy Preview https://deploy-preview-1518--solid-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

[Content]: Top-Level Array Example

1 participant