Repository navigation
fetchium@0.4.0
·
33 commits
to main
since this release
Minor Changes
- 088a23b: Breaking:
getConfig()is now memoized via areactiveSignalinstead of being recomputed on every fetch; it only re-runs when a signal consumed inside notifies. Existing implementations that read mutable execution-context state directly (most commonlythis.response) silently return stale config after first evaluation, because plain field reads track no signals. To react to new responses, wrap the read in areactiveSignalthunk that consumes the newly-exposedthis.responseNotifier(a SignaliumNotifieron the execution context, fired byRESTQueryAdapterafter each request):reactiveSignal(() => { this.responseNotifier.consume(); return this.response?.ok; }).value.getConfig()implementations that don't read mutable ctx state continue to work unchanged.