Releases: bvaughn/suspense
Releases · bvaughn/suspense
0.0.13
- Add
useCacheMutation
hook with support for sync and async cache mutations.
- Add
evictAll
API to all cache types.
- Added dependency on React
experimental
release channel (required for mutation/invalidation support).
0.0.12
- Fixed external dependency version.
0.0.11
- Add
createIntervalCache
type for incrementally loading and merging sets of values over time.
0.0.10
createCache
uses WeakRef
and FinalizationRegistry
by default to avoid memory leaks; this can be disabled with a new useWeakRef
config flag (see #12).
0.0.9
- Change
createCache
and createStreamingCache
signatures to use named parameters.
- Add
evictAll
method to createCache
and createStreamingCache
types.
- Add
createSingleEntryCache
convenience method.
0.0.8
useStreamingValues
waits until commit boundaries before throttling, to avoid overwhelming the scheduler if there are slow renders.
0.0.7
createCache
and createStreamingCache
add support for cancellation via AbortSignal
.
0.0.6
createStreamingCache
catches errors and automatically rejects a pending streaming value.
0.0.5
cache.getStatus
and useCacheStatus
now return an explicit "not-started"
string rather than undefined
for keys that have not been fetched.
- Add
status
attribute to the return value for useStreamingValues
hook.