( request: Request, thenableState: ThenableState | null, replay: ReplaySet, node: ReactNodeList, childIndex: number, blockedBoundary: Root | SuspenseBoundary, hoistableState: null | HoistableState, abortSet: Set<Task>, keyPath: Root | KeyNode, formatContext: FormatContext, context: ContextSnapshot, treeContext: TreeContext, row: null | SuspenseListRow, componentStack: null | ComponentStackNode, legacyContext: LegacyContext, debugTask: null | ConsoleTask, )
| 897 | } |
| 898 | |
| 899 | function createReplayTask( |
| 900 | request: Request, |
| 901 | thenableState: ThenableState | null, |
| 902 | replay: ReplaySet, |
| 903 | node: ReactNodeList, |
| 904 | childIndex: number, |
| 905 | blockedBoundary: Root | SuspenseBoundary, |
| 906 | hoistableState: null | HoistableState, |
| 907 | abortSet: Set<Task>, |
| 908 | keyPath: Root | KeyNode, |
| 909 | formatContext: FormatContext, |
| 910 | context: ContextSnapshot, |
| 911 | treeContext: TreeContext, |
| 912 | row: null | SuspenseListRow, |
| 913 | componentStack: null | ComponentStackNode, |
| 914 | legacyContext: LegacyContext, |
| 915 | debugTask: null | ConsoleTask, |
| 916 | ): ReplayTask { |
| 917 | request.allPendingTasks++; |
| 918 | if (blockedBoundary === null) { |
| 919 | request.pendingRootTasks++; |
| 920 | } else { |
| 921 | blockedBoundary.pendingTasks++; |
| 922 | } |
| 923 | if (row !== null) { |
| 924 | row.pendingTasks++; |
| 925 | } |
| 926 | replay.pendingTasks++; |
| 927 | const task: ReplayTask = ({ |
| 928 | replay, |
| 929 | node, |
| 930 | childIndex, |
| 931 | ping: () => pingTask(request, task), |
| 932 | blockedBoundary, |
| 933 | blockedSegment: null, |
| 934 | blockedPreamble: null, |
| 935 | hoistableState, |
| 936 | abortSet, |
| 937 | keyPath, |
| 938 | formatContext, |
| 939 | context, |
| 940 | treeContext, |
| 941 | row, |
| 942 | componentStack, |
| 943 | thenableState, |
| 944 | }: any); |
| 945 | if (!disableLegacyContext) { |
| 946 | task.legacyContext = legacyContext; |
| 947 | } |
| 948 | if (__DEV__) { |
| 949 | task.debugTask = debugTask; |
| 950 | } |
| 951 | abortSet.add(task); |
| 952 | return task; |
| 953 | } |
| 954 | |
| 955 | function createPendingSegment( |
| 956 | request: Request, |
no test coverage detected