next.js
4ae6d033 - [dynamicio] Instrument Date to be dynamic when accessing current time (#70916)

Commit
1 year ago
[dynamicio] Instrument Date to be dynamic when accessing current time (#70916) Date can be considered IO when it infers the current time when using `new Date()` or `Date.now()`. Both of these are queries to the computer clock and while they are synchronous they are semantically IO. When `dyanmicIO` is enabled these APIs should be treated like other IO and be excluded from prerenders unless explicitly cached
Author
Parents
Loading