Skip to content

Releases: bvaughn/suspense

0.0.13

06 Mar 22:11
Compare
Choose a tag to compare
  • 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

04 Mar 23:48
Compare
Choose a tag to compare
  • Fixed external dependency version.

0.0.11

04 Mar 16:15
Compare
Choose a tag to compare
  • Add createIntervalCache type for incrementally loading and merging sets of values over time.

0.0.10

04 Mar 16:15
Compare
Choose a tag to compare
  • 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

27 Feb 17:21
Compare
Choose a tag to compare
  • Change createCache and createStreamingCache signatures to use named parameters.
  • Add evictAll method to createCache and createStreamingCache types.
  • Add createSingleEntryCache convenience method.

0.0.8

27 Feb 17:20
Compare
Choose a tag to compare
  • useStreamingValues waits until commit boundaries before throttling, to avoid overwhelming the scheduler if there are slow renders.

0.0.7

25 Feb 21:10
Compare
Choose a tag to compare
  • createCache and createStreamingCache add support for cancellation via AbortSignal.

0.0.6

24 Feb 18:27
Compare
Choose a tag to compare
  • createStreamingCache catches errors and automatically rejects a pending streaming value.

0.0.5

24 Feb 18:27
Compare
Choose a tag to compare
  • 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.

0.0.4

24 Feb 13:06
Compare
Choose a tag to compare