angular/goldens/public-api
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
..
animations refactor(animations): deprecate the animations package (#62795) 2025-07-29 09:50:09 +00:00
common build: add a noDuplicateEnumValue rule (#63483) 2025-09-10 22:16:11 +00:00
compiler-cli build: migrate to new toolchain usage for api goldens (#62688) 2025-07-17 18:13:42 -04:00
core refactor(core): Split consumerBefore/AfterComputation (#62549) 2025-09-11 15:47:34 +00:00
elements build: update to latest dev infra code (#56128) 2024-05-28 14:42:31 +02:00
forms feat(forms): add support for pushing an array of controls to formarray (#57102) 2025-08-06 11:20:18 +02:00
localize docs: rename @nodoc to @docs-private (#61194) 2025-05-09 10:23:00 -07:00
platform-browser feat(core): introduce BootstrapContext for improved server bootstrapping (#63636) 2025-09-09 10:45:02 -07:00
platform-browser-dynamic refactor(platform-browser): Deprecate the platform-browser-dynamic package (#61043) 2025-05-15 09:48:15 -07:00
platform-server feat(core): introduce BootstrapContext for improved server bootstrapping (#63636) 2025-09-09 10:45:02 -07:00
router build: add a noDuplicateEnumValue rule (#63483) 2025-09-10 22:16:11 +00:00
service-worker feat(service-worker): Adds for type in provideServiceWorker (#62831) 2025-08-06 15:10:27 +02:00
upgrade docs: rename @nodoc to @docs-private (#61194) 2025-05-09 10:23:00 -07:00
manage.js build: use pnpm as the package manager instead of yarn (#62924) 2025-07-31 22:06:27 +00:00