Skip to content
Discussion options

You must be logged in to vote

Yes, if you use no stale value in your profile (undefined), the static staleTime is used, though there's an edge case for the "seconds" profile, which uses dynamic. We should document this fallback behavior better.

  • const secondsCacheLifeProfile = result.experimental.cacheLife['seconds']
    if (
    secondsCacheLifeProfile &&
    secondsCacheLifeProfile.stale === undefined
    ) {
    // We default this to whatever stale time you had configured for dynamic content.
    // Since this is basically a dynamic cache life profile.
    const dynamicStaleTime = result.experimental.staleTimes?.dynamic
    s…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@mblandr
Comment options

@icyJoseph
Comment options

@mblandr
Comment options

@icyJoseph
Comment options

Answer selected by mblandr
@mblandr
Comment options

@mblandr
Comment options

@icyJoseph
Comment options

@icyJoseph
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants