@inertiajs/core 2.3.18 → 2.3.21

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 CHANGED
@@ -2122,10 +2122,9 @@ var Response = class _Response {
2122
2122
  ...pageResponse.onceProps || {}
2123
2123
  };
2124
2124
  }
2125
- pageResponse.flash = {
2126
- ...page.get().flash,
2127
- ...this.requestParams.isDeferredPropsRequest() ? {} : pageResponse.flash
2128
- };
2125
+ if (this.requestParams.isDeferredPropsRequest()) {
2126
+ pageResponse.flash = { ...page.get().flash };
2127
+ }
2129
2128
  const currentOriginalDeferred = page.get().initialDeferredProps;
2130
2129
  if (currentOriginalDeferred && Object.keys(currentOriginalDeferred).length > 0) {
2131
2130
  pageResponse.initialDeferredProps = currentOriginalDeferred;