@inertiajs/core 2.3.17 → 2.3.18
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.
- package/dist/index.esm.js +3 -4
- package/dist/index.esm.js.map +3 -3
- package/dist/index.js +3 -4
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/types/types.d.ts +10 -7
package/dist/index.esm.js
CHANGED
|
@@ -1059,7 +1059,7 @@ var CurrentPage = class {
|
|
|
1059
1059
|
viewTransition
|
|
1060
1060
|
}) {
|
|
1061
1061
|
const doSwap = () => this.swapComponent({ component, page: page2, preserveState });
|
|
1062
|
-
if (!viewTransition || !document?.startViewTransition) {
|
|
1062
|
+
if (!viewTransition || !document?.startViewTransition || document.visibilityState === "hidden") {
|
|
1063
1063
|
return doSwap();
|
|
1064
1064
|
}
|
|
1065
1065
|
const viewTransitionCallback = typeof viewTransition === "boolean" ? () => null : viewTransition;
|
|
@@ -1914,7 +1914,6 @@ var Response = class _Response {
|
|
|
1914
1914
|
}
|
|
1915
1915
|
await history.processQueue();
|
|
1916
1916
|
history.preserveUrl = this.requestParams.all().preserveUrl;
|
|
1917
|
-
const previousFlash = page.get().flash;
|
|
1918
1917
|
await this.setPage();
|
|
1919
1918
|
const errors = page.get().props.errors || {};
|
|
1920
1919
|
if (Object.keys(errors).length > 0) {
|
|
@@ -1927,7 +1926,7 @@ var Response = class _Response {
|
|
|
1927
1926
|
router.flush(page.get().url);
|
|
1928
1927
|
}
|
|
1929
1928
|
const { flash } = page.get();
|
|
1930
|
-
if (Object.keys(flash).length > 0 &&
|
|
1929
|
+
if (Object.keys(flash).length > 0 && !this.requestParams.isDeferredPropsRequest()) {
|
|
1931
1930
|
fireFlashEvent(flash);
|
|
1932
1931
|
this.requestParams.all().onFlash(flash);
|
|
1933
1932
|
}
|
|
@@ -2316,7 +2315,7 @@ var RequestStream = class {
|
|
|
2316
2315
|
}
|
|
2317
2316
|
send(request) {
|
|
2318
2317
|
this.requests.push(request);
|
|
2319
|
-
request.send().
|
|
2318
|
+
request.send().finally(() => {
|
|
2320
2319
|
this.requests = this.requests.filter((r) => r !== request);
|
|
2321
2320
|
});
|
|
2322
2321
|
}
|