angular/packages
Rocky Meza 663f48cfc1 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:33 +00:00
..
animations refactor(core): Update tests for zoneless by default (#63668) 2025-09-09 14:41:56 -07:00
benchpress build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
common refactor(common): improve typing of ngComponentOutletContent (#63674) 2025-09-10 22:26:27 +00:00
compiler refactor(core): dispatch enter and leave animations at the right times (#63450) 2025-09-10 22:24:00 +00:00
compiler-cli refactor(core): dispatch enter and leave animations at the right times (#63450) 2025-09-10 22:24:00 +00:00
core refactor(core): Split consumerBefore/AfterComputation (#62549) 2025-09-11 15:47:33 +00:00
docs/di
elements refactor(core): Update tests for zoneless by default (#63668) 2025-09-09 14:41:56 -07:00
examples refactor(core): Update tests for zoneless by default (#63668) 2025-09-09 14:41:56 -07:00
forms refactor(core): Update tests for zoneless by default (#63668) 2025-09-09 14:41:56 -07:00
language-service feat(compiler-cli): enable type checking of host bindings by default (#63654) 2025-09-09 14:34:29 -07:00
localize build: update all non-major dependencies (#63661) 2025-09-10 07:11:54 -07:00
misc/angular-in-memory-web-api build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
platform-browser refactor(core): dispatch enter and leave animations at the right times (#63450) 2025-09-10 22:24:00 +00:00
platform-browser-dynamic refactor(core): Update tests for zoneless by default (#63668) 2025-09-09 14:41:56 -07:00
platform-server refactor(core): dispatch enter and leave animations at the right times (#63450) 2025-09-10 22:24:00 +00:00
private/testing build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
router build: add a noDuplicateEnumValue rule (#63483) 2025-09-10 22:16:10 +00:00
service-worker refactor(bazel): reduce build deps (#63348) 2025-08-28 09:16:10 -07:00
ssr/docs build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
upgrade refactor(core): Update tests for zoneless by default (#63668) 2025-09-09 14:41:56 -07:00
zone.js build: update all non-major dependencies (#63661) 2025-09-10 07:11:54 -07:00
BUILD.bazel build: configure signal forms for release (#63458) 2025-08-29 14:31:35 -07:00
circular-deps-test.conf.js docs(docs-infra): lift circular imports (#63186) 2025-08-19 07:58:45 +00:00
empty.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
goog.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
license-banner.txt docs: update license year (#59883) 2025-03-04 19:36:47 +00:00
package.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
README.md docs: fix links to docs (#57391) 2024-08-19 09:20:15 -07:00
system.d.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
tsconfig-build.json build: migrate to using new jasmine_test (#62131) 2025-06-19 10:06:27 +02:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig.json feat(compiler-cli): enable type checking of host bindings by default (#63654) 2025-09-09 14:34:29 -07:00
tsec-exemption.json
types.d.ts build: move private testing helpers outside platform-browser/testing (#61472) 2025-05-20 10:00:43 +00:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT