/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/core/src/render3/reactivity/untracked.ts
18 строк
638 B
SkyZeroZx
docs: Adds links to relevant guides for APIs in core package
17 ноя 2025, 19:47
17 ноя 2025, 19:47
0432e76
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {untracked as untrackedPrimitive} from '../../../primitives/signals'; /** * Execute an arbitrary function in a non-reactive (non-tracking) context. The executed function * can, optionally, return a value. * @see [Reading without tracking dependencies](guide/signals#reading-without-tracking-dependencies) */ export function untracked<T>(nonReactiveReadsFn: () => T): T { return untrackedPrimitive(nonReactiveReadsFn); }