Skip to content

Commit d61e3fe

Browse files
authored
fix: React Hydration error reporting
1 parent 3d912a0 commit d61e3fe

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/index.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ if (isClient) {
2424
);
2525

2626
if (isProduction) {
27-
hydrateRoot(container, app, { onRecoverableError: () => {} });
27+
hydrateRoot(container, app, {
28+
onRecoverableError: (error) => {
29+
console.error("Hydration error:", error);
30+
},
31+
});
2832
} else {
2933
const root = createRoot(container);
3034
root.render(app);

0 commit comments

Comments
 (0)