@absolutejs/absolute 0.19.0-beta.420 → 0.19.0-beta.422

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.
@@ -1,4 +1,4 @@
1
- import { afterNextRender, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, Input, inject, signal } from '@angular/core';
1
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, Input, inject, signal } from '@angular/core';
2
2
  import { NgTemplateOutlet } from '@angular/common';
3
3
  import { registerStreamingSlot } from './core/streamingSlotRegistrar.js';
4
4
  import { isAngularDeferSlotPayload } from './defer-slot-payload.js';
@@ -54,13 +54,14 @@ export class DeferSlotComponent {
54
54
  this.applyPatchPayload(payload);
55
55
  return true;
56
56
  };
57
- afterNextRender(() => {
57
+ }
58
+ ngAfterViewInit() {
59
+ if (typeof window === 'undefined')
60
+ return;
61
+ requestAnimationFrame(() => {
58
62
  this.runtimeReady.set(true);
59
- if (typeof window.__ABS_SLOT_FLUSH__ === 'function') {
60
- requestAnimationFrame(() => {
61
- window.__ABS_SLOT_FLUSH__?.();
62
- });
63
- }
63
+ this.cdr.markForCheck();
64
+ window.__ABS_SLOT_FLUSH__?.();
64
65
  });
65
66
  }
66
67
  ngOnDestroy() {
@@ -181485,7 +181485,6 @@ init_renderIslandMarkup();
181485
181485
  var renderIsland = (props) => renderIslandMarkup(requireCurrentIslandRegistry(), props);
181486
181486
  // src/angular/components/defer-slot.component.ts
181487
181487
  import {
181488
- afterNextRender,
181489
181488
  ChangeDetectionStrategy,
181490
181489
  ChangeDetectorRef,
181491
181490
  Component as Component2,
@@ -181582,13 +181581,14 @@ class DeferSlotComponent {
181582
181581
  this.applyPatchPayload(payload);
181583
181582
  return true;
181584
181583
  };
181585
- afterNextRender(() => {
181584
+ }
181585
+ ngAfterViewInit() {
181586
+ if (typeof window === "undefined")
181587
+ return;
181588
+ requestAnimationFrame(() => {
181586
181589
  this.runtimeReady.set(true);
181587
- if (typeof window.__ABS_SLOT_FLUSH__ === "function") {
181588
- requestAnimationFrame(() => {
181589
- window.__ABS_SLOT_FLUSH__?.();
181590
- });
181591
- }
181590
+ this.cdr.markForCheck();
181591
+ window.__ABS_SLOT_FLUSH__?.();
181592
181592
  });
181593
181593
  }
181594
181594
  ngOnDestroy() {
@@ -181926,5 +181926,5 @@ export {
181926
181926
  DeferErrorTemplateDirective
181927
181927
  };
181928
181928
 
181929
- //# debugId=5A60717DD0A27CF264756E2164756E21
181929
+ //# debugId=F31195CBE3A3C4BB64756E2164756E21
181930
181930
  //# sourceMappingURL=index.js.map