@absolutejs/absolute 0.19.0-beta.963 → 0.19.0-beta.965

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.
@@ -9391,15 +9391,14 @@ var provideDeterministicEnv = (options = {}) => {
9391
9391
  }
9392
9392
  ];
9393
9393
  };
9394
- // src/angular/page.ts
9395
- var defineAngularPage = (definition) => definition;
9396
9394
  // src/angular/composables/useResource.ts
9397
9395
  import { DestroyRef, inject, signal } from "@angular/core";
9398
9396
  var useResource = (fetcher, options = {}) => {
9399
9397
  const destroyRef = inject(DestroyRef);
9398
+ const start = options.start ?? "immediate";
9400
9399
  const data = signal(null);
9401
9400
  const error = signal(null);
9402
- const loading = signal(false);
9401
+ const loading = signal(start !== "idle");
9403
9402
  let controller = null;
9404
9403
  let destroyed = false;
9405
9404
  const cancel = () => {
@@ -9447,7 +9446,7 @@ var useResource = (fetcher, options = {}) => {
9447
9446
  destroyed = true;
9448
9447
  cancel();
9449
9448
  });
9450
- if (options.immediate !== false) {
9449
+ if (start === "immediate") {
9451
9450
  refresh();
9452
9451
  }
9453
9452
  return { cancel, data, error, loading, mutate, refresh };
@@ -10335,7 +10334,6 @@ export {
10335
10334
  renderIsland,
10336
10335
  provideDeterministicEnv,
10337
10336
  preserveAcrossHmr,
10338
- defineAngularPage,
10339
10337
  createTypedIsland,
10340
10338
  createDeterministicRandom,
10341
10339
  buildAbsoluteHttpTransferCacheOptions,
@@ -10353,5 +10351,5 @@ export {
10353
10351
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
10354
10352
  };
10355
10353
 
10356
- //# debugId=566EE1BB76DC6E4A64756E2164756E21
10354
+ //# debugId=23BF7A4624F264E064756E2164756E21
10357
10355
  //# sourceMappingURL=browser.js.map