Releases: bvaughn/suspense
Releases · bvaughn/suspense
0.0.23
- Rewrote deferred internals to wrap a
Promise
and implement the full Promise
API rather than PromiseLike
.
0.0.22
- Fixed type definition for internal
ResolvedRecordData
structure.
0.0.21
- Fix bug where
createCache
subscribers were not notified after evict
or evictAll
.
- Renamed
STATUS_NOT_STARTED
("not-started") status to STATUS_NOT_FOUND
("not-found") for better semantics.
- Exposed/exported some of the lower-level record utilities for creating custom cache types.
0.0.20
- Fixed type definition for
createStreamingCache
StreamingCacheLoadOptions
param.
0.0.19
- Updated
createStreamingCache
to support non-array types (e.g. string) as well.
- Renamed
useStreamingValues
to useStreamingValue
.
0.0.18
- Fixed some edge case garbage collection bugs when
WeakRef
s are used to store values.
0.0.17
- Renamed
useCacheValue
to useImperativeCacheValue
to make it clearer that the hook is an escape hatch.
0.0.16
- Add
useCacheValue
hook for loading values using the imperative cache API rather than Suspense.
0.0.15
- Removed
Thenable
in favor of built-in PromiseLike
since it works better with async/await types
- Replaced
isThenable
with isPromiseLike
0.0.14
- Renamed
fetchSuspense
to read
and fetchAsync
to readAsync