Unverified Commit 2646cd04 authored by Jaaneek's avatar Jaaneek Committed by GitHub

feat: add information that revalidate interval is in seconds (#64229)

Add information that revalidate interval is in seconds to unstable_cache

It's not obvious as "usually" time is in milliseconds
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent be2c20a6
...@@ -54,6 +54,9 @@ export function unstable_cache<T extends Callback>( ...@@ -54,6 +54,9 @@ export function unstable_cache<T extends Callback>(
cb: T, cb: T,
keyParts?: string[], keyParts?: string[],
options: { options: {
/**
* The revalidation interval in seconds.
*/
revalidate?: number | false revalidate?: number | false
tags?: string[] tags?: string[]
} = {} } = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment