Releases: oyvindberg/use-remote-data
Releases · oyvindberg/use-remote-data
Fix publishing
v0.5.1 meh, build before publish, release 0.5.1
Improve invalidation API
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),
});