Skip to content

SwiftUIQuery 0.1.1

Latest

Choose a tag to compare

@snndmnsz snndmnsz released this 29 Sep 18:39

Fixes query lifecycle cancellation races that could stop fetching or detach observable results after a screen task restarts.

Fixes

  • Replacement run() and runPeriodicRefetch() lifecycles are isolated from cancellation cleanup belonging to the previous task.
  • Manual polling restarts correctly during its initial fetch and when canceled before its task begins.
  • Already-canceled lifecycle and fetch calls no longer detach an active subscription.
  • Applies to both the Observation and Combine result adapters, with no API or deployment-target changes.

Validation

  • All 86 package tests passed, including five new parameterized tests covering 14 restart/cancellation scenarios.
  • SwiftUI examples, iOS 15 compatibility checks, and iOS Simulator build passed.

Update your Swift Package dependency to 0.1.1.