next.js
9d691d0a - Log cached fetches during HMR refreshes if enabled in logging config (#68287)

Commit
1 year ago
Log cached fetches during HMR refreshes if enabled in logging config (#68287) In #67925 we decided not to log any fetches during HMR refreshes (i.e. when editing server components). With this PR, we introduce a new logging config (`logging.fetches.hmrRefreshes`) so that users can opt in to logging of `fetch` requests that are restored from the Server Components HMR cache. <img width="806" alt="hmr cache logs" src="https://github.com/user-attachments/assets/ea789520-8490-479a-a4f0-1febb42388e2">
Author
Parents
Loading