birdofpreyru/react-global-state

Add tests verifying that 0 maxage, refreshAge, garbageCollectionAge are properly set by useAsyncData() params

Opened this issue · 1 comments

Must not use just || there, should check if those are undefined.

const maxage = options.maxage || DEFAULT_MAXAGE;
const refreshAge = options.refreshAge || maxage;
const garbageCollectAge = options.garbageCollectAge || maxage;

Fixed in v0.4.2, but keeping the ticket open to add tests later.