react-markup 0.0.0-experimental-eafeac09-20260819 → 0.0.0-experimental-bd6ea412-20260824
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4752,6 +4752,7 @@
|
|
|
4752
4752
|
this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
|
|
4753
4753
|
this.onShellError = void 0 === onShellError ? noop : onShellError;
|
|
4754
4754
|
this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
|
|
4755
|
+
this.renderLifetimeController = new AbortController();
|
|
4755
4756
|
this.formState = void 0 === formState ? null : formState;
|
|
4756
4757
|
this.didWarnForKey = null;
|
|
4757
4758
|
}
|
|
@@ -5249,6 +5250,7 @@
|
|
|
5249
5250
|
? (shellComplete || debugTask.run(errorInfo.bind(null, error)),
|
|
5250
5251
|
debugTask.run(onFatalError.bind(null, error)))
|
|
5251
5252
|
: (shellComplete || errorInfo(error), onFatalError(error));
|
|
5253
|
+
request.renderLifetimeController.abort("The render ended.");
|
|
5252
5254
|
null !== request.destination
|
|
5253
5255
|
? ((request.status = 13), request.destination.destroy(error))
|
|
5254
5256
|
: ((request.status = 12),
|
|
@@ -8963,6 +8965,7 @@
|
|
|
8963
8965
|
console.error(
|
|
8964
8966
|
"There was still abortable task at the root when we closed. This is a bug in React."
|
|
8965
8967
|
),
|
|
8968
|
+
request.renderLifetimeController.abort("The render ended."),
|
|
8966
8969
|
(request.status = 13),
|
|
8967
8970
|
destination.push(null),
|
|
8968
8971
|
(request.destination = null));
|
|
@@ -9010,10 +9013,22 @@
|
|
|
9010
9013
|
fatalError(request, error$5, abortableTasks, null);
|
|
9011
9014
|
}
|
|
9012
9015
|
}
|
|
9016
|
+
function attachAbortSignal(request, signal) {
|
|
9017
|
+
signal.aborted
|
|
9018
|
+
? abort(request, signal.reason)
|
|
9019
|
+
: signal.addEventListener(
|
|
9020
|
+
"abort",
|
|
9021
|
+
function () {
|
|
9022
|
+
abort(request, signal.reason);
|
|
9023
|
+
},
|
|
9024
|
+
{ signal: request.renderLifetimeController.signal }
|
|
9025
|
+
);
|
|
9026
|
+
}
|
|
9013
9027
|
function abort(request, reason) {
|
|
9014
9028
|
if (
|
|
9015
9029
|
!(request.aborted || (11 !== request.status && 10 !== request.status))
|
|
9016
9030
|
) {
|
|
9031
|
+
request.renderLifetimeController.abort("The render ended.");
|
|
9017
9032
|
var isRecoverableReason =
|
|
9018
9033
|
"object" === typeof reason &&
|
|
9019
9034
|
null !== reason &&
|
|
@@ -10042,45 +10057,37 @@
|
|
|
10042
10057
|
resumableState = createResumableState(
|
|
10043
10058
|
options ? options.identifierPrefix : void 0,
|
|
10044
10059
|
void 0
|
|
10045
|
-
)
|
|
10046
|
-
|
|
10047
|
-
|
|
10060
|
+
);
|
|
10061
|
+
resumableState = createRequest(
|
|
10062
|
+
children,
|
|
10063
|
+
resumableState,
|
|
10064
|
+
createRenderState(
|
|
10048
10065
|
resumableState,
|
|
10049
|
-
createRenderState(
|
|
10050
|
-
resumableState,
|
|
10051
|
-
void 0,
|
|
10052
|
-
void 0,
|
|
10053
|
-
void 0,
|
|
10054
|
-
void 0,
|
|
10055
|
-
void 0
|
|
10056
|
-
),
|
|
10057
|
-
createFormatContext(0, null, 0, null),
|
|
10058
|
-
Infinity,
|
|
10059
|
-
function (error, errorInfo) {
|
|
10060
|
-
reject(error);
|
|
10061
|
-
var onError = options && options.onError;
|
|
10062
|
-
onError && onError(error, errorInfo);
|
|
10063
|
-
},
|
|
10064
|
-
void 0,
|
|
10065
10066
|
void 0,
|
|
10066
10067
|
void 0,
|
|
10067
10068
|
void 0,
|
|
10068
10069
|
void 0,
|
|
10069
10070
|
void 0
|
|
10070
|
-
)
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
var
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10081
|
-
|
|
10082
|
-
|
|
10083
|
-
|
|
10071
|
+
),
|
|
10072
|
+
createFormatContext(0, null, 0, null),
|
|
10073
|
+
Infinity,
|
|
10074
|
+
function (error, errorInfo) {
|
|
10075
|
+
reject(error);
|
|
10076
|
+
var onError = options && options.onError;
|
|
10077
|
+
onError && onError(error, errorInfo);
|
|
10078
|
+
},
|
|
10079
|
+
void 0,
|
|
10080
|
+
void 0,
|
|
10081
|
+
void 0,
|
|
10082
|
+
void 0,
|
|
10083
|
+
void 0,
|
|
10084
|
+
void 0
|
|
10085
|
+
);
|
|
10086
|
+
options &&
|
|
10087
|
+
options.signal &&
|
|
10088
|
+
attachAbortSignal(resumableState, options.signal);
|
|
10089
|
+
startWork(resumableState);
|
|
10090
|
+
startFlowing(resumableState, {
|
|
10084
10091
|
push: function (chunk) {
|
|
10085
10092
|
null !== chunk ? (buffer += chunk) : resolve(buffer);
|
|
10086
10093
|
return !0;
|
|
@@ -10091,5 +10098,5 @@
|
|
|
10091
10098
|
});
|
|
10092
10099
|
});
|
|
10093
10100
|
};
|
|
10094
|
-
exports.version = "19.3.0-experimental-
|
|
10101
|
+
exports.version = "19.3.0-experimental-bd6ea412-20260824";
|
|
10095
10102
|
})();
|
|
@@ -3662,6 +3662,7 @@ function RequestInstance(
|
|
|
3662
3662
|
this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
|
|
3663
3663
|
this.onShellError = void 0 === onShellError ? noop : onShellError;
|
|
3664
3664
|
this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
|
|
3665
|
+
this.renderLifetimeController = new AbortController();
|
|
3665
3666
|
this.formState = void 0 === formState ? null : formState;
|
|
3666
3667
|
}
|
|
3667
3668
|
function createRequest(
|
|
@@ -3945,6 +3946,7 @@ function fatalError(request, error) {
|
|
|
3945
3946
|
onFatalError = request.onFatalError;
|
|
3946
3947
|
0 !== request.pendingRootTasks && onShellError(error);
|
|
3947
3948
|
onFatalError(error);
|
|
3949
|
+
request.renderLifetimeController.abort("The render ended.");
|
|
3948
3950
|
null !== request.destination
|
|
3949
3951
|
? ((request.status = 13), request.destination.destroy(error))
|
|
3950
3952
|
: ((request.status = 12), request.aborted || (request.fatalError = error));
|
|
@@ -6746,6 +6748,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
6746
6748
|
((partialBoundaries = endChunkForTag("body")),
|
|
6747
6749
|
destination.push(partialBoundaries)),
|
|
6748
6750
|
i.hasHtml && ((i = endChunkForTag("html")), destination.push(i)),
|
|
6751
|
+
request.renderLifetimeController.abort("The render ended."),
|
|
6749
6752
|
(request.status = 13),
|
|
6750
6753
|
destination.push(null),
|
|
6751
6754
|
(request.destination = null));
|
|
@@ -6782,8 +6785,20 @@ function finishAbort(request, abortableTasks) {
|
|
|
6782
6785
|
logRecoverableError(request, error$70, {}), fatalError(request, error$70);
|
|
6783
6786
|
}
|
|
6784
6787
|
}
|
|
6788
|
+
function attachAbortSignal(request, signal) {
|
|
6789
|
+
signal.aborted
|
|
6790
|
+
? abort(request, signal.reason)
|
|
6791
|
+
: signal.addEventListener(
|
|
6792
|
+
"abort",
|
|
6793
|
+
function () {
|
|
6794
|
+
abort(request, signal.reason);
|
|
6795
|
+
},
|
|
6796
|
+
{ signal: request.renderLifetimeController.signal }
|
|
6797
|
+
);
|
|
6798
|
+
}
|
|
6785
6799
|
function abort(request, reason) {
|
|
6786
6800
|
if (!(request.aborted || (11 !== request.status && 10 !== request.status))) {
|
|
6801
|
+
request.renderLifetimeController.abort("The render ended.");
|
|
6787
6802
|
var isRecoverableReason =
|
|
6788
6803
|
"object" === typeof reason &&
|
|
6789
6804
|
null !== reason &&
|
|
@@ -6824,49 +6839,37 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
6824
6839
|
resumableState = createResumableState(
|
|
6825
6840
|
options ? options.identifierPrefix : void 0,
|
|
6826
6841
|
void 0
|
|
6827
|
-
)
|
|
6828
|
-
|
|
6829
|
-
|
|
6842
|
+
);
|
|
6843
|
+
resumableState = createRequest(
|
|
6844
|
+
children,
|
|
6845
|
+
resumableState,
|
|
6846
|
+
createRenderState(resumableState, void 0, void 0, void 0, void 0, void 0),
|
|
6847
|
+
createFormatContext(0, null, 0, null),
|
|
6848
|
+
Infinity,
|
|
6849
|
+
function (error, errorInfo) {
|
|
6850
|
+
reject(error);
|
|
6851
|
+
var onError = options && options.onError;
|
|
6852
|
+
onError && onError(error, errorInfo);
|
|
6853
|
+
},
|
|
6854
|
+
void 0,
|
|
6855
|
+
void 0,
|
|
6856
|
+
void 0,
|
|
6857
|
+
void 0,
|
|
6858
|
+
void 0,
|
|
6859
|
+
void 0
|
|
6860
|
+
);
|
|
6861
|
+
options &&
|
|
6862
|
+
options.signal &&
|
|
6863
|
+
attachAbortSignal(resumableState, options.signal);
|
|
6864
|
+
resumableState.flushScheduled = null !== resumableState.destination;
|
|
6865
|
+
performWork(resumableState);
|
|
6866
|
+
10 === resumableState.status && (resumableState.status = 11);
|
|
6867
|
+
null === resumableState.trackedPostpones &&
|
|
6868
|
+
safelyEmitEarlyPreloads(
|
|
6830
6869
|
resumableState,
|
|
6831
|
-
|
|
6832
|
-
resumableState,
|
|
6833
|
-
void 0,
|
|
6834
|
-
void 0,
|
|
6835
|
-
void 0,
|
|
6836
|
-
void 0,
|
|
6837
|
-
void 0
|
|
6838
|
-
),
|
|
6839
|
-
createFormatContext(0, null, 0, null),
|
|
6840
|
-
Infinity,
|
|
6841
|
-
function (error, errorInfo) {
|
|
6842
|
-
reject(error);
|
|
6843
|
-
var onError = options && options.onError;
|
|
6844
|
-
onError && onError(error, errorInfo);
|
|
6845
|
-
},
|
|
6846
|
-
void 0,
|
|
6847
|
-
void 0,
|
|
6848
|
-
void 0,
|
|
6849
|
-
void 0,
|
|
6850
|
-
void 0,
|
|
6851
|
-
void 0
|
|
6870
|
+
0 === resumableState.pendingRootTasks
|
|
6852
6871
|
);
|
|
6853
|
-
|
|
6854
|
-
var signal = options.signal;
|
|
6855
|
-
if (signal.aborted) abort(fizzRequest, signal.reason);
|
|
6856
|
-
else {
|
|
6857
|
-
var listener = function () {
|
|
6858
|
-
abort(fizzRequest, signal.reason);
|
|
6859
|
-
signal.removeEventListener("abort", listener);
|
|
6860
|
-
};
|
|
6861
|
-
signal.addEventListener("abort", listener);
|
|
6862
|
-
}
|
|
6863
|
-
}
|
|
6864
|
-
fizzRequest.flushScheduled = null !== fizzRequest.destination;
|
|
6865
|
-
performWork(fizzRequest);
|
|
6866
|
-
10 === fizzRequest.status && (fizzRequest.status = 11);
|
|
6867
|
-
null === fizzRequest.trackedPostpones &&
|
|
6868
|
-
safelyEmitEarlyPreloads(fizzRequest, 0 === fizzRequest.pendingRootTasks);
|
|
6869
|
-
startFlowing(fizzRequest, {
|
|
6872
|
+
startFlowing(resumableState, {
|
|
6870
6873
|
push: function (chunk) {
|
|
6871
6874
|
null !== chunk ? (buffer += chunk) : resolve(buffer);
|
|
6872
6875
|
return !0;
|
|
@@ -6877,4 +6880,4 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
6877
6880
|
});
|
|
6878
6881
|
});
|
|
6879
6882
|
};
|
|
6880
|
-
exports.version = "19.3.0-experimental-
|
|
6883
|
+
exports.version = "19.3.0-experimental-bd6ea412-20260824";
|