@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.
- package/dist/angular/browser.js +4 -3
- package/dist/angular/browser.js.map +4 -4
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +4 -3
- package/dist/angular/index.js.map +4 -4
- package/dist/src/angular/browser.d.ts +1 -1
- package/dist/src/angular/composables/index.d.ts +1 -1
- package/dist/src/angular/composables/useResource.d.ts +19 -4
- package/dist/src/angular/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-dfZYKL/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-dfZYKL/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-dfZYKL/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/angular/index.js
CHANGED
|
@@ -14870,9 +14870,10 @@ var defineAngularPage = (definition) => definition;
|
|
|
14870
14870
|
import { DestroyRef, inject, signal } from "@angular/core";
|
|
14871
14871
|
var useResource = (fetcher, options = {}) => {
|
|
14872
14872
|
const destroyRef = inject(DestroyRef);
|
|
14873
|
+
const start = options.start ?? "immediate";
|
|
14873
14874
|
const data = signal(null);
|
|
14874
14875
|
const error = signal(null);
|
|
14875
|
-
const loading = signal(
|
|
14876
|
+
const loading = signal(start !== "idle");
|
|
14876
14877
|
let controller = null;
|
|
14877
14878
|
let destroyed = false;
|
|
14878
14879
|
const cancel = () => {
|
|
@@ -14920,7 +14921,7 @@ var useResource = (fetcher, options = {}) => {
|
|
|
14920
14921
|
destroyed = true;
|
|
14921
14922
|
cancel();
|
|
14922
14923
|
});
|
|
14923
|
-
if (
|
|
14924
|
+
if (start === "immediate") {
|
|
14924
14925
|
refresh();
|
|
14925
14926
|
}
|
|
14926
14927
|
return { cancel, data, error, loading, mutate, refresh };
|
|
@@ -15378,5 +15379,5 @@ export {
|
|
|
15378
15379
|
ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
|
|
15379
15380
|
};
|
|
15380
15381
|
|
|
15381
|
-
//# debugId=
|
|
15382
|
+
//# debugId=86634D5F2472270064756E2164756E21
|
|
15382
15383
|
//# sourceMappingURL=index.js.map
|