swrly_hooks 0.4.0-dev.1
swrly_hooks: ^0.4.0-dev.1 copied to clipboard
Flutter Hooks bindings for swrly — `useSwrlyQuery` and `useSwrlyMutation` for consuming a swrly cache from HookWidget-based screens.
Changelog #
0.4.0-dev.1 #
Lockstep bump alongside swrly 0.4.0-dev.1. No hook-side source changes —
the new Query options (initialData / initialDataUpdatedAt /
refetchInterval) flow through as Query fields, and useSwrlyQuery /
useSwrlyMutation already consume the definition object. The new
MutationBuilder.retry / QueryBuilder.notifyOn knobs are widget-local
and don't cross into the hooks surface.
0.3.1-dev.1 #
Lockstep bump alongside swrly 0.3.1. No source changes to the hook
package itself — this release exists so the compatibility rule (matching
major.minor = compatible) keeps holding after core moves to 0.3.1.
0.3.0-dev.2 #
- Widen
flutter_hooksconstraint from^0.20.5to>=0.20.5 <0.22.0. The narrow pin brokeflutter pub add swrly_hooksfor anyone on the currentflutter_hooksrelease (0.21.x) — a regression caught during real-world skill verification against a fresh Flutter project after0.3.0-dev.1was published. The 8 widget tests all pass on 0.21 (the useEffect / useState / useRef / useStream APIs used here are stable across both).
0.3.0-dev.1 #
Initial prerelease. Versioned lockstep with swrly (major.minor kept
in sync so swrly X.Y.* and swrly_hooks X.Y.* are always compatible
— same pattern as flutter_riverpod / hooks_riverpod).
useSwrlyQuery(query)— subscribes aHookWidgetto a swrlyQuerywith correct subscriber lifecycle (invalidation refetches,cacheTimeGC waits) and canonical key hashing.useSwrlyMutation(fn)— fire-and-forget mutation hook; returns(state, mutate). For optimistic / rollback semantics, use swrly's built-inMutationBuilderinstead.