Utilities for working with React Suspense
prefetch
method should not thrown an already-cached errorstatus
field to deferred objects (values created with createDeferred
)displayName
property to custom hooks to improve React DevTools displayuseStreamingValue
that sometimes caused updates to be droppedsuspense.development.cjs.mjs
in the published package.read
method to createStreamingCache
for blocking (Suspense) readserror
property to createStreamingCache
values; useStreamingValue
hook will now return the reason for a streaming failurecreateStreamingCache
add convenience method readAsync
for blocking (async) reads.createCache
and createIntervalCache
methods subscribeToStatus
renamed to subscribe
and parameters changed to also include value or errorcreateCache
subscribers notified after value explicitly cached via cache
useCacheMutation
sync mutation notifies subscribers after mutationThe change in subscription APIs was made to simplify interop with imperative code.