docs: fix some errors docs (#55706)

PR Close #55706
This commit is contained in:
Matthieu Riegler
2024-05-07 10:22:14 +02:00
committed by Pawel Kozlowski
parent ae83646704
commit 53ae096c3c
6 changed files with 19 additions and 17 deletions
+15
View File
@@ -1239,6 +1239,11 @@ const REFERENCE_SUB_NAVIGATION_DATA: NavigationItem[] = [
path: 'errors/NG0507',
contentPath: 'reference/errors/NG0507',
},
{
label: 'NG0602: HTML content was altered after server-side rendering',
path: 'errors/NG0602',
contentPath: 'reference/errors/NG0602',
},
{
label: 'NG05104: Root element was not found',
path: 'errors/NG05104',
@@ -1254,6 +1259,16 @@ const REFERENCE_SUB_NAVIGATION_DATA: NavigationItem[] = [
path: 'errors/NG0912',
contentPath: 'reference/errors/NG0912',
},
{
label: 'NG0950: Required input is accessed before a value is set.',
path: 'errors/NG0950',
contentPath: 'reference/errors/NG0950',
},
{
label: 'NG0951: Child query result is required but no value is available.',
path: 'errors/NG0951',
contentPath: 'reference/errors/NG0951',
},
{
label: 'NG0955: Track expression resulted in duplicated keys for a given collection',
path: 'errors/NG0955',
+1 -4
View File
@@ -1,8 +1,5 @@
@name Disallowed function call inside reactive context
@category runtime
@shortDescription A disallowed function is called inside a reactive context
# Disallowed function call inside reactive context
@description
A function that is not allowed to run inside a reactive context was called from within a reactive context.
For example, an `effect` cannot be scheduled from within a `computed` or an actively executing effect.
@@ -1,6 +1,5 @@
# Required input is accessed before a value is set.
@description
A required input was accessed but no value was bound.
This can happen when a required input is accessed too early in your directive or component.
+1 -4
View File
@@ -1,8 +1,5 @@
@name Child query result is required but no value is available.
@category runtime
@shortDescription Required child query result was accessed before query results were calculated or query has no matches.
# Child query result is required but no value is available.
@description
Required child query (`contentChild.required` or `viewChild.required`) result was accessed before query results were calculated or query has no matches.
This can happen in two distinct situations:
+1 -4
View File
@@ -1,8 +1,5 @@
@name Track expression resulted in duplicated keys for a given collection.
@category runtime
@shortDescription A track expression specified in the `@for` loop evaluated to duplicated keys for a given collection. Duplicate keys are problematic from the correctness point of view and the tracking expression should be updated.
# Track expression resulted in duplicated keys for a given collection.
@description
A track expression specified in the `@for` loop evaluated to duplicated keys for a given collection, ex.:
```typescript
+1 -4
View File
@@ -1,8 +1,5 @@
@name Tracking expression caused re-creation of the DOM structure.
@category runtime
@shortDescription The configured tracking expression (track by identity) caused re-creation of the DOM structure for the entire collection, which is problematic from the performance and correctness point of view.
# Tracking expression caused re-creation of the DOM structure.
@description
The identity track expression specified in the `@for` loop caused re-creation of the DOM corresponding to _all_ items. This is very expensive operation that commonly occurs when working with immutable data structures, Example:
```typescript