Skip to content

Commit

Permalink
The one with fixes for deferred values (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlemTuzlak authored Jun 20, 2024
1 parent 3bdceb8 commit 889f76e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "remix-development-tools",
"description": "Remix development tools - a set of tools for developing/debugging Remix.run apps",
"author": "Alem Tuzlak",
"version": "4.2.0",
"version": "4.2.1",
"license": "MIT",
"keywords": [
"remix",
Expand Down
4 changes: 4 additions & 0 deletions src/server/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ export const analyzeDeferred = (id: string, start: number, response: any) => {
response.data[key].then(() => {
const end = diffInMs(start);
infoLog(`Deferred value ${chalk.white(key)} resolved in ${chalk.blueBright(id)} - ${chalk.white(`${end}ms`)}`);

}).catch((e: any) => {
errorLog(`Deferred value ${chalk.white(key)} rejected in ${chalk.blueBright(id)}`);
errorLog(e?.message ? e.message : e)
});
});
}
Expand Down

0 comments on commit 889f76e

Please sign in to comment.