angular/goldens/public-api/core
Rocky Meza 219462fe0f refactor(core): Split consumerBefore/AfterComputation (#62549)
This makes it possible to batch effects, where we can "reopen" consumers
during initial render and then finalize them after we are finally done
adding all the effects to a batch:

```
function createBatch() {
  const effect = // ... create effect node
  resetConsumerBeforeComputation(effect);
  return effect;
}

// pseudo-code
function appendEffect(effectBatch, updater) {
  if (value is a signal) {
    const prevConsumer = setActiveConsumer(effectBatch.node);
    const output = value();
    setActiveConsumer(prevConsumer);
    effectBatch.push({ signal, updater });
    return output;
  }
}

function finalizeBatch(effectBatch) {
  if (effectBatch.length > 0) {
    finalizeConsumerAfterComputation(effectBatch.node);
  }
}

const effectBatch = createBatchEffectNode();
appendEffect(signal1, (newValue) => /* something */);
appendEffect(signal2, (newValue) => /* something different */);
finalizeBatch(effectBatch);
```

PR Close #62549
2025-09-11 15:47:34 +00:00
..
primitives refactor(core): Split consumerBefore/AfterComputation (#62549) 2025-09-11 15:47:34 +00:00
rxjs-interop refactor(core): rename loader parameter to stream for rxResource (#60919) 2025-04-23 19:34:50 +00:00
testing refactor(core): add configurable behavior for animations to testbed (#62764) 2025-07-29 09:49:35 +00:00
errors.api.md fix(core): properly recognize failed fetch responses when loading external resources in JIT (#62992) 2025-08-05 10:10:56 +02:00
global_utils.api.md build: migrate to new toolchain usage for api goldens (#62688) 2025-07-17 18:13:42 -04:00
index.api.md Revert "feat(platform-browser): Add IsolatedShadowDom encapsulation method (#62723)" (#63142) 2025-08-13 11:12:59 -07:00