@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.js CHANGED
@@ -2180,10 +2180,9 @@ var Response = class _Response {
2180
2180
  ...pageResponse.onceProps || {}
2181
2181
  };
2182
2182
  }
2183
- pageResponse.flash = {
2184
- ...page.get().flash,
2185
- ...this.requestParams.isDeferredPropsRequest() ? {} : pageResponse.flash
2186
- };
2183
+ if (this.requestParams.isDeferredPropsRequest()) {
2184
+ pageResponse.flash = { ...page.get().flash };
2185
+ }
2187
2186
  const currentOriginalDeferred = page.get().initialDeferredProps;
2188
2187
  if (currentOriginalDeferred && Object.keys(currentOriginalDeferred).length > 0) {
2189
2188
  pageResponse.initialDeferredProps = currentOriginalDeferred;