-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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">
- Loading branch information
1 parent
c039891
commit 9d691d0
Showing
7 changed files
with
84 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ export default async function Page() { | |
} | ||
) | ||
|
||
return <div>Hello World!</div> | ||
return <h1>Hello World!</h1> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ module.exports = { | |
logging: { | ||
fetches: { | ||
fullUrl: true, | ||
// hmrRefreshes: true, | ||
}, | ||
}, | ||
} |