Skip to content

feat(solid): @SolidQuery previousReady / previousError (annotations dev.4 + generator dev.8) - #114

Merged
nank1ro merged 1 commit into
mainfrom
feat/query-previous-ready-error
Aug 28, 2026
Merged

nank1ro merged 1 commit into
mainfrom
feat/query-previous-ready-error

Conversation

@nank1ro

@nank1ro nank1ro commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Extends the @SolidQuery retained-state feature from previousState to also cover previousReady and previousError, backing solidart 3.0.0-dev.2's Resource.previousReady/previousError (most recent ready/error state, retained across any number of failures).

  • solid_annotations 3.0.0-dev.4: previousReady/previousError source-time stubs on the query tear-offs.
  • solid_generator 3.0.0-dev.8: recognize .previousReady/.previousError (same-class + cross-instance, origin-qualified) as tracked reads; refresh stays untracked. New goldens for same-class previousReady and cross-instance previousReady+previousError standalone.

364 tests pass, analyze + format clean; 2 adversarial reviewers, no defects.

Extend the retained-state query feature to previousReady/previousError,
backing solidart 3.0.0-dev.2's new Resource.previousReady/previousError.

solid_annotations 3.0.0-dev.4: previousReady/previousError source-time stubs
on the query tear-off — the most recent ready/error state, retained across
ANY number of failures (unlike previousState, the single prior state). Read
as <query>.previousReady?.value / <query>.previousError?.error.

solid_generator 3.0.0-dev.8: recognize <query>.previousReady/.previousError
(same-class + cross-instance, origin-qualified) as tracked reads, so a build()
reading only a retained-state getter gets the SignalBuilder wrap + import.
Generalizes the previousState recognition to the getter set; refresh stays
untracked. New goldens prove same-class previousReady and cross-instance
previousReady/previousError standalone.
@nank1ro
nank1ro merged commit b2bcfac into main Aug 28, 2026
1 check passed
@nank1ro
nank1ro deleted the feat/query-previous-ready-error branch August 28, 2026 15:09
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.

1 participant