Skip to content

Commit 7e40ef2

Browse files
n0sciblethePunderWoman
authored andcommitted
docs: Add NG0750 to errors list (#59265)
This PR adds error NG0750 to Error Encyclopedia. Update adev/src/content/reference/errors/NG0750.md Co-authored-by: Andrew Kushnir <43554145+AndrewKushnir@users.noreply.github.com> Update adev/src/content/reference/errors/NG0750.md Co-authored-by: Andrew Kushnir <43554145+AndrewKushnir@users.noreply.github.com> PR Close #59265
1 parent a4783c6 commit 7e40ef2

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

adev/src/app/sub-navigation-data.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,11 @@ const REFERENCE_SUB_NAVIGATION_DATA: NavigationItem[] = [
12851285
path: 'errors/NG05000',
12861286
contentPath: 'reference/errors/NG05000',
12871287
},
1288+
{
1289+
label: 'NG0750: @defer dependencies failed to load',
1290+
path: 'errors/NG0750',
1291+
contentPath: 'reference/errors/NG0750',
1292+
},
12881293
{
12891294
label: 'NG6100: NgModule.id Set to module.id anti-pattern',
12901295
path: 'errors/NG6100',
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# @defer dependencies failed to load
2+
3+
This error occurs when loading dependencies for a `@defer` block fails (typically due to poor network conditions) and no `@error` block has been configured to handle the failure state. Having no `@error` block in this scenario may create a poor user experience.
4+
5+
## Debugging the error
6+
Verify that you added `@error` blocks to your `@defer` blocks to handle failure states.

adev/src/content/reference/errors/overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
| `NG0505` | [No hydration info in server response](errors/NG0505) |
2222
| `NG0506` | [NgZone remains unstable](errors/NG0506) |
2323
| `NG0507` | [HTML content was altered after SSR](errors/NG0507) |
24+
| `NG0750` | [@defer dependencies failed to load](errors/NG0750) |
2425
| `NG0910` | [Unsafe bindings on an iframe element](errors/NG0910) |
2526
| `NG0912` | [Component ID generation collision](errors/NG0912) |
2627
| `NG0955` | [Track expression resulted in duplicated keys for a given collection](errors/NG0955) |
@@ -29,7 +30,7 @@
2930
| `NG01203` | [Missing value accessor](errors/NG01203) |
3031
| `NG02200` | [Missing Iterable Differ](errors/NG02200) |
3132
| `NG02800` | [JSONP support in HttpClient configuration](errors/NG02800) |
32-
| `NG05000` | [Hydration with unsupported Zone.js instance.](errors/NG05000) |
33+
| `NG05000` | [Hydration with unsupported Zone.js instance.](errors/NG05000) |
3334
| `NG05104` | [Root element was not found.](errors/NG05104) |
3435

3536
## Compiler errors

goldens/public-api/core/errors.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const enum RuntimeErrorCode {
2929
// (undocumented)
3030
CYCLIC_DI_DEPENDENCY = -200,
3131
// (undocumented)
32-
DEFER_LOADING_FAILED = 750,
32+
DEFER_LOADING_FAILED = -750,
3333
// (undocumented)
3434
DUPLICATE_DIRECTIVE = 309,
3535
// (undocumented)

packages/core/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const enum RuntimeErrorCode {
9797
MISSING_LOCALE_DATA = 701,
9898

9999
// Defer errors (750-799 range)
100-
DEFER_LOADING_FAILED = 750,
100+
DEFER_LOADING_FAILED = -750,
101101

102102
// standalone errors
103103
IMPORT_PROVIDERS_FROM_STANDALONE = 800,

0 commit comments

Comments
 (0)