feat(collections): add async and optimistic reactive collection factories - #1061
Monkeylordz wants to merge 2 commits into
Conversation
|
✅ Deploy Preview for solid-primitives-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Adds
@solid-primitives/collectionswithcreateReactiveMap,createReactiveSet,createReactiveWeakMap, andcreateReactiveWeakSet. Each collection supports mutable entries and compute functions while preserving lazy, independent subscriptions to individual keys or members.@solid-primitives/collections/serialization.These are explicitly NOT in the
map/setpackages, because they use a shared backend. I considered re-exporting them in those packages but decided against it - thiscollectionswould still need to be published to prevent duplicate code, and then we would be exporting the same thing in two different packages.This is a draft pending the required Solid fixes and a release containing them:
Before marking this ready, update to the appropriate Solid release, confirm the supported peer dependency range, and rerun the full runtime, SSR/hydration, and development/production GC suites.
Validation: collection build, type checks, lint, story formatting, and the full shared Storybook production build pass. Runtime, SSR, and GC checks currently fail against the installed Solid
2.0.0-rc.0, which lacks the required behavior and the newersolid-js/internalexport used by server tests. Those regression checks remain enabled; the test runner stops before hydration if SSR fixture generation fails.