You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -43,7 +44,7 @@ export async function onTodoCompleted(id: number) {
43
44
```
44
45
45
46
In the example below, we explain why event-based telefunctions lead to increased:
46
-
- Development speed (and we explain how to keep things DRY)
47
+
- Development speed (while we explain how to keep telefunctions DRY)
47
48
- Security
48
49
- Performance
49
50
@@ -129,7 +130,7 @@ This naming convention ensures telefunctions are tightly coupled to UI component
129
130
130
131
#### Too restrictive convention?
131
132
132
-
To keep things [DRY](https://softwareengineering.stackexchange.com/questions/400183/what-should-i-consider-when-the-dry-and-kiss-principles-are-incompatible) you may be tempted to define a single telefunction that is re-used by many UI components. For example:
133
+
To keep telefunctions [DRY](https://softwareengineering.stackexchange.com/questions/400183/what-should-i-consider-when-the-dry-and-kiss-principles-are-incompatible) you may be tempted to define a single telefunction that is re-used by many UI components. For example:
133
134
134
135
```ts
135
136
// database/actions/tasks.telefunc.ts
@@ -214,8 +215,7 @@ That's why we recommend event-based telefunctions, along with the naming convent
214
215
215
216
## Naming convention
216
217
217
-
As explained in<Link href="#example">the example above</Link>, for a clear structure and more effective use of Telefunc, we recommend the following convention.
218
-
218
+
As explained in<Link href="#example">the example above</Link>, for a clear structure and efficient Telefunc usage, we recommend the following convention.
219
219
220
220
Name telefunctions `onSomeEvent()`:
221
221
@@ -257,5 +257,5 @@ Telefunc shows a warning if you don't follow the naming convention — you can o
0 commit comments