Skip to content

Commit 6a8a75d

Browse files
authored
Merge pull request #51 from mriska/patch-4
Fix typo: mutliple -> multiple
2 parents 8e8ab01 + b09e50e commit 6a8a75d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/rules/no-side-effect-cp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ When we send actions in computed properties we are violating this pattern which
77
1. When I first access this property send an action
88
2. This action will not fire again unless the dependent key of this computed property changes.
99

10-
The fact that property access could cause some side effect to occur is less than ideal as it forces you to write code that reacts to data changing over time instead of controlling the side effects based on user input into the system. Often when we see this pattern we see that one component is responsible for displaying the data and another, unrelated component handles the action. This then forces a developer to look in mutliple places to understand how the component works. We can see this in the following example
10+
The fact that property access could cause some side effect to occur is less than ideal as it forces you to write code that reacts to data changing over time instead of controlling the side effects based on user input into the system. Often when we see this pattern we see that one component is responsible for displaying the data and another, unrelated component handles the action. This then forces a developer to look in multiple places to understand how the component works. We can see this in the following example
1111

1212
```
1313
<input value={{firstName}} />

0 commit comments

Comments
 (0)