inertiax-core 11.0.0 → 11.0.1

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.js CHANGED
@@ -2544,6 +2544,10 @@ var Response = class _Response {
2544
2544
  }
2545
2545
  await history.processQueue();
2546
2546
  history.preserveUrl = this.requestParams.all().preserveUrl;
2547
+ const responseFrameId = this.getHeader("x-inertia-frame");
2548
+ if (responseFrameId) {
2549
+ this.requestParams.merge({ frameId: responseFrameId });
2550
+ }
2547
2551
  await this.setPage();
2548
2552
  const frameId = this.requestParams.all().frameId;
2549
2553
  const { flash } = page.get(frameId);
@@ -3024,6 +3028,7 @@ var Request = class _Request {
3024
3028
  "X-Requested-With": "XMLHttpRequest",
3025
3029
  "X-Inertia": true
3026
3030
  };
3031
+ headers["X-Inertia-Frame"] = this.router?.frameId ?? this.requestParams.all().frameId;
3027
3032
  const frameId = this.requestParams.all().frameId;
3028
3033
  const page2 = page.get(frameId);
3029
3034
  if (page2.url) {