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

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.
@@ -9397,9 +9397,10 @@ var defineAngularPage = (definition) => definition;
9397
9397
  import { DestroyRef, inject, signal } from "@angular/core";
9398
9398
  var useResource = (fetcher, options = {}) => {
9399
9399
  const destroyRef = inject(DestroyRef);
9400
+ const start = options.start ?? "immediate";
9400
9401
  const data = signal(null);
9401
9402
  const error = signal(null);
9402
- const loading = signal(false);
9403
+ const loading = signal(start !== "idle");
9403
9404
  let controller = null;
9404
9405
  let destroyed = false;
9405
9406
  const cancel = () => {
@@ -9447,7 +9448,7 @@ var useResource = (fetcher, options = {}) => {
9447
9448
  destroyed = true;
9448
9449
  cancel();
9449
9450
  });
9450
- if (options.immediate !== false) {
9451
+ if (start === "immediate") {
9451
9452
  refresh();
9452
9453
  }
9453
9454
  return { cancel, data, error, loading, mutate, refresh };
@@ -10353,5 +10354,5 @@ export {
10353
10354
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
10354
10355
  };
10355
10356
 
10356
- //# debugId=566EE1BB76DC6E4A64756E2164756E21
10357
+ //# debugId=BB32210B0FAF825464756E2164756E21
10357
10358
  //# sourceMappingURL=browser.js.map