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
{{ message }}
This repository was archived by the owner on Feb 15, 2025. It is now read-only.
|`level`| number | 20 (Logger.level.WARN) | On which 'level' the logger should log. For instance if it only should log Errors. | No |
31
+
|`active`| boolean | true | If the Logger is active. | No |
32
+
|`timestamp`| boolean | false | If a Timestamp gets applied for each Log Message. | No |
33
+
|`allowedTags`| string[]|['runtime', 'storage', 'subscription', 'multieditor']| Sometimes logs are marked with Tags. If this is the case, the log gets only logged if the Tag is included. | No |
34
+
|`canUseCustomStyles`| boolean | true | If the Logger is allowed to apply css styles to the Logs. For instance Agile Logs are by default purple. | No |
|`level`| number | 20 (Logger.level.WARN) | On which 'level' the logger should log. For instance if it only should log Errors. | No |
74
-
|`active`| boolean | true | If the Logger is active. | No |
75
-
|`timestamp`| boolean | false | If a Timestamp gets applied for each Log Message. | No |
76
-
|`allowedTags`| string[]|['runtime', 'storage', 'subscription', 'multieditor']| Sometimes logs are marked with Tags. If this is the case, the log gets only logged if the Tag is included. | No |
77
-
|`canUseCustomStyles`| boolean | true | If the Logger is allowed to apply css styles to the Logs. For instance Agile Logs are by default purple. | No |
78
-
79
-
80
69
81
70
### `localStorage`
82
71
@@ -85,19 +74,28 @@ If we use the Local Storage each Agile Sub Instance we persist, gets stored in t
85
74
We aren't limited to the Local Storage, we can configure our own [Storage](../storage/Introduction.md).
86
75
This is in a Mobile Environment necessary, because there the Local Storage doesn't exist.
87
76
With `App.registerStorage()` we can register our wished [Storage](../storage/Introduction.md).
88
-
````ts
89
-
localStorage: false// default true
90
-
````
77
+
```ts
78
+
const App =newAgile({
79
+
localStorage: false// default true
80
+
});
81
+
```
91
82
92
83
### `waitForMount`
93
84
94
85
With `waitForMount` we define if AgileTs should wait
95
86
with causing rerender on an unmounted Component until it got mounted.
96
-
````ts
97
-
waitForMount: false// default true
98
-
````
87
+
```ts
88
+
const App =newAgile({
89
+
waitForMount: false// default true
90
+
});
91
+
```
92
+
93
+
94
+
## 🟦 Typescript
95
+
96
+
`Agile Class` is almost 100% typesafe.
99
97
100
-
## Where to instantiate?
98
+
## 🗺 Where to instantiate?
101
99
102
100
You can instantiate the Agile Instance where ever you want.
103
101
Directly in your Component, in an extra File or on Paper.
0 commit comments