@absolutejs/absolute 0.19.0-beta.724 → 0.19.0-beta.726

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.
@@ -3361,15 +3361,14 @@ var buildDirtyResponse = (index, maybeProps) => {
3361
3361
  headers: { "Content-Type": "text/html" }
3362
3362
  });
3363
3363
  };
3364
- async function handleReactPageRequest(PageComponentOrInput, index, ...args) {
3365
- const isInput = isReactPageRequestInput(PageComponentOrInput);
3366
- const Page = isInput ? PageComponentOrInput.Page : PageComponentOrInput;
3367
- const resolvedIndex = isInput ? PageComponentOrInput.index : index ?? "";
3368
- const options = isInput ? PageComponentOrInput : args[1];
3369
- const maybeProps = isInput ? PageComponentOrInput.props : args[0];
3370
- if (!isReactComponent(Page)) {
3371
- throw new Error("React page handler requires a React component.");
3372
- }
3364
+ async function handleReactPageRequest(input) {
3365
+ if (!isReactPageRequestInput(input)) {
3366
+ throw new Error("React page handler requires an object input with Page and index.");
3367
+ }
3368
+ const Page = input.Page;
3369
+ const resolvedIndex = input.index;
3370
+ const options = input;
3371
+ const maybeProps = input.props;
3373
3372
  if (isSsrCacheDirty("react")) {
3374
3373
  return buildDirtyResponse(resolvedIndex, maybeProps);
3375
3374
  }
@@ -3570,5 +3569,5 @@ export {
3570
3569
  Island
3571
3570
  };
3572
3571
 
3573
- //# debugId=353E18596752A0AF64756E2164756E21
3572
+ //# debugId=1441C5DB930D617464756E2164756E21
3574
3573
  //# sourceMappingURL=index.js.map