Skip to content

docs(stores): class instances in stores; frozen objects wrap - #1709

Merged
ryansolid merged 3 commits into
v2-rebuildfrom
claude/class-instances-in-stores
Nov 18, 2026
Merged

ryansolid merged 3 commits into
v2-rebuildfrom
claude/class-instances-in-stores

Conversation

@ryansolid

@ryansolid ryansolid commented Nov 18, 2026 •

Copy link
Copy Markdown
Member
  • I have read the Contribution guide
  • This PR references an issue (the matching solid PR is linked below)

Description(required)

This PR documents how stores treat class instances (solidjs/solid#5031) and a frozen-object change that already shipped.

  • Concepts › Stores gets a new section, "Store a class instance":
    • Getters and methods run on the store proxy, so they track what they read.
    • A method's writes go through the setter's draft. Called outside the setter, its writes are ignored.
    • An object that manages its own state, such as an actor or an API client, stays out of the store or goes in a { shallow: true } store.
  • Concepts › Stores also gains a common problem, "A class instance in the store stopped working", and a recap line. The old "Map, Date, or class instance does not track" problem now covers only Map and Date.
  • Reference › createStore caveats:
  • Reference › isWrappable: frozen objects are wrappable.

Merge timing: the class getter lines describe solidjs/solid#5031, so this PR should merge after it. The PR was reworked after review: it now covers getters only, and methods keep running on the proxy.

Checks: Prettier is applied. lint-tone and check-examples passed on the first revision. This revision is prose only.

Related issues & labels


Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117BoWMQrQZP9s7AUj6iNXZ
@bolt-new-by-stackblitz

Copy link
Copy Markdown

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

@netlify

netlify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for solid-docs-v2 ready!

Name Link
🔨 Latest commit 0ac9843
🔍 Latest deploy log https://app.netlify.com/projects/solid-docs-v2/deploys/6afe32ca98a1338af2190add
😎 Deploy Preview https://deploy-preview-1709--solid-docs-v2.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.

…tay out or shallow

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117BoWMQrQZP9s7AUj6iNXZ
@ryansolid
ryansolid merged commit 3c4a254 into v2-rebuild Nov 18, 2026
8 checks passed
@ryansolid
ryansolid deleted the claude/class-instances-in-stores branch November 18, 2026 23:52
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.

2 participants