Skip to content

Releases: oyvindberg/use-remote-data

Fix publishing

14 Oct 11:11
Compare
Choose a tag to compare
v0.5.1

meh, build before publish, release 0.5.1

Improve invalidation API

14 Oct 11:05
Compare
Choose a tag to compare

Invalidation

Looks like this:

const store = useRemoteData(testPromise.next, { invalidation: InvalidationStrategy.refetchAfterMillis(10) });

Polling

Looks like this

const store = useRemoteData(testPromise.next, {
  invalidation: InvalidationStrategy.pollUntil((x) => x >= 2, 10),
});