feat(sources): Pinia and Redux persist adapters#31
Conversation
Ship ./sources/redux so classic and RTK stores can hydrate via a private set action; persistableReducer at the root avoids silent no-op hydrates.
Wire API nav + wrapping-stores recipe; drop shipped #7 from remaining-roi.
Tighten migrating leads + JSDoc gotchas; extend docs-voice source listing order; docs:api/validate/build green.
DEV warn when setState/hydrate is ignored; document root-only persistableReducer; cover createSlice, bad per-slice wrap, setup round-trip, and detached $subscribe after effectScope.stop.
Detect ignored hydrate via unchanged getState() reference, not payload inequality after dispatch.
Shorter migrating leads, drop first-party fluff, plain-root JSDoc wording, clarify hero source-pill subset vs full source order.
🦋 Changeset detectedLatest commit: 85f33f5 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 |
|
Warning Review limit reached
Next review available in: 57 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (22)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks 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 |
Complete the hero source-swap roster with brand icons and minimal persistStore snippets, ordered before the custom escape hatch.
Use Any source (not custom source); include Pinia and Redux.
Summary
./sources/pinia(persistStorevia$state =+ detached$subscribe) and./sources/redux(persistStore+ rootpersistableReducerfor classic + RTK).Test plan
bun test src/adapters/sources/pinia.test.ts src/adapters/sources/redux.test.tsbun run typecheck && bun run build./sources/piniaand./sources/reduxappear in package exports / entry-points docs