|
9 | 9 | */
|
10 | 10 |
|
11 | 11 | "use strict";
|
| 12 | + |
| 13 | +console.log('file override react-dom-server.node.production.js') |
| 14 | + |
12 | 15 | var util = require("util"),
|
13 | 16 | crypto = require("crypto"),
|
14 | 17 | async_hooks = require("async_hooks"),
|
@@ -5792,7 +5795,15 @@ function retryNode(request, task) {
|
5792 | 5795 | 0 < task.replay.nodes.length
|
5793 | 5796 | )
|
5794 | 5797 | throw Error(
|
5795 |
| - "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering." |
| 5798 | + "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering. Debug info: " + JSON.stringify({ |
| 5799 | + component: getComponentNameFromType(type) || "Unknown", |
| 5800 | + props: Object.keys(props || {}), |
| 5801 | + keyPath: task.keyPath, |
| 5802 | + childIndex: task.childIndex, |
| 5803 | + replayNodes: task.replay.nodes, |
| 5804 | + replaySlots: task.replay.slots, |
| 5805 | + pendingTasks: task.replay.pendingTasks |
| 5806 | + }) |
5796 | 5807 | );
|
5797 | 5808 | task.replay.pendingTasks--;
|
5798 | 5809 | } catch (x) {
|
@@ -5883,7 +5894,15 @@ function retryNode(request, task) {
|
5883 | 5894 | 0 < task.replay.nodes.length
|
5884 | 5895 | )
|
5885 | 5896 | throw Error(
|
5886 |
| - "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering." |
| 5897 | + "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering. Debug info: " + JSON.stringify({ |
| 5898 | + boundaryID: props.rootSegmentID || "Unknown", |
| 5899 | + content: typeof content === "string" ? content.substring(0, 100) : typeof content, |
| 5900 | + keyPath: task.keyPath, |
| 5901 | + childIndex: task.childIndex, |
| 5902 | + replayNodes: task.replay.nodes, |
| 5903 | + replaySlots: task.replay.slots, |
| 5904 | + pendingTasks: task.replay.pendingTasks |
| 5905 | + }) |
5887 | 5906 | );
|
5888 | 5907 | task.replay.pendingTasks--;
|
5889 | 5908 | if (0 === props.pendingTasks && 0 === props.status) {
|
@@ -6064,7 +6083,15 @@ function renderChildrenArray(request, task, children, childIndex) {
|
6064 | 6083 | renderChildrenArray(request, task, children, -1);
|
6065 | 6084 | if (1 === task.replay.pendingTasks && 0 < task.replay.nodes.length)
|
6066 | 6085 | throw Error(
|
6067 |
| - "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering." |
| 6086 | + "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering. Debug info: " + JSON.stringify({ |
| 6087 | + arrayIndex: childIndex, |
| 6088 | + childrenCount: Array.isArray(children) ? children.length : "not array", |
| 6089 | + keyPath: task.keyPath, |
| 6090 | + childIndex: task.childIndex, |
| 6091 | + replayNodes: task.replay.nodes, |
| 6092 | + replaySlots: task.replay.slots, |
| 6093 | + pendingTasks: task.replay.pendingTasks |
| 6094 | + }) |
6068 | 6095 | );
|
6069 | 6096 | task.replay.pendingTasks--;
|
6070 | 6097 | } catch (x) {
|
@@ -6829,7 +6856,14 @@ function performWork(request$jscomp$1) {
|
6829 | 6856 | 0 < task.replay.nodes.length
|
6830 | 6857 | )
|
6831 | 6858 | throw Error(
|
6832 |
| - "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering." |
| 6859 | + "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering. Debug info: " + JSON.stringify({ |
| 6860 | + taskNode: task.node || "Unknown", |
| 6861 | + keyPath: task.keyPath, |
| 6862 | + childIndex: task.childIndex, |
| 6863 | + replayNodes: task.replay.nodes, |
| 6864 | + replaySlots: task.replay.slots, |
| 6865 | + pendingTasks: task.replay.pendingTasks |
| 6866 | + }) |
6833 | 6867 | );
|
6834 | 6868 | task.replay.pendingTasks--;
|
6835 | 6869 | task.abortSet.delete(task);
|
|
0 commit comments