Skip to content

Commit 8fad615

Browse files
lyutailsthePunderWoman
authored andcommitted
docs: fix typo in effect.md
1 parent 71149ef commit 8fad615

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

adev/src/content/guide/signals/effect.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The execution of both kinds of `effect` are tied to the change detection process
8282
- "View effects" are executed _before_ their corresponding component is checked by the change detection process.
8383
- "Root effects" are executed prior to all components being checked by the change detection process.
8484

85-
In both cases, if at least one of the effect dependencies changed during the effect execution, the effect will re-run before moving ahead on the change detection process,
85+
In both cases, if at least one of the effect dependencies changed during the effect execution, the effect will re-run before moving ahead on the change detection process.
8686

8787
### Destroying effects
8888

@@ -133,7 +133,7 @@ export class MyFancyChart {
133133
// Run a single time to create the chart instance
134134
afterNextRender({
135135
write: () => {
136-
this.chart = initializeChart(this.canvas().nativeElement(), this.charData());
136+
this.chart = initializeChart(this.canvas().nativeElement(), this.chartData());
137137
},
138138
});
139139

@@ -151,7 +151,7 @@ TIP: You often don't need `afterRenderEffect` to check for DOM changes. APIs lik
151151

152152
### Render phases
153153

154-
Accessing the DOM and mutating it can impact the performance of your application, for example by triggering to many unecesary [reflows](https://developer.mozilla.org/en-US/docs/Glossary/Reflow).
154+
Accessing the DOM and mutating it can impact the performance of your application, for example by triggering too many unnecessary [reflows](https://developer.mozilla.org/en-US/docs/Glossary/Reflow).
155155

156156
To optimize those operations, `afterRenderEffect` offers four phases to group the callbacks and execute them in an optimized order.
157157

0 commit comments

Comments
 (0)