MCPcopy
hub / github.com/facebook/react / abortTaskSoft

Function abortTaskSoft

packages/react-server/src/ReactFizzServer.js:4528–4539  ·  view source on GitHub ↗
(this: Request, task: Task)

Source from the content-addressed store, hash-verified

4526}
4527
4528function abortTaskSoft(this: Request, task: Task): void {
4529 // This aborts task without aborting the parent boundary that it blocks.
4530 // It's used for when we didn't need this task to complete the tree.
4531 // If task was needed, then it should use abortTask instead.
4532 const request: Request = this;
4533 const boundary = task.blockedBoundary;
4534 const segment = task.blockedSegment;
4535 if (segment !== null) {
4536 segment.status = ABORTED;
4537 finishedTask(request, boundary, task.row, segment);
4538 }
4539}
4540
4541function abortRemainingSuspenseBoundary(
4542 request: Request,

Callers

nothing calls this directly

Calls 1

finishedTaskFunction · 0.85

Tested by

no test coverage detected