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.
AgileTs is a simple, fast, and well-tested State Management Framework implemented in TypeScript. It's more
34
-
flexible and boilerplate-free than Redux and has an interesting approach to reducing the codebase size through a
33
+
AgileTs is a global, simple, well-tested State Management Framework implemented in TypeScript.
34
+
It's more flexible and boilerplate-free than frameworks like Redux and has a powerful approach to reducing the codebase size through a
35
35
centralized memory design pattern. The philosophy behind AgileTs is simple:
36
36
37
37
### 🚅 Straightforward
@@ -49,15 +49,15 @@ Write minimalistic, boilerplate-free code that captures your intent.
49
49
MY_COLLECTION.collect({id: 1, name: "Frank"});
50
50
MY_COLLECTION.collect({id: 2, name: "Dieter"});
51
51
```
52
-
- Mutate or Check States with simple Functions
52
+
- Mutate and Check States with simple Functions
53
53
```ts
54
54
MY_STATE.undo(); // Undo latest change
55
55
MY_STATE.is({hello: "jeff"}); // Check if State has the Value '{hello: "jeff"}'
56
56
```
57
57
58
58
### 🤸 Flexible
59
59
60
-
- Works in nearly every UI-Framework. Check [here](https://agile-ts.org/docs/frameworks) if your preferred Framework is supported too.
60
+
- Works in nearly any UI-Framework. Check [here](https://agile-ts.org/docs/frameworks) if your preferred Framework is supported too.
61
61
- Surly behaves with the workflow which suits you best. No need for _reducers_, _actions_, ..
62
62
- Has **no** external dependencies
63
63
@@ -110,8 +110,7 @@ our [Quick Start](./Installation.md) Guides, where you learn the basics about ho
110
110
Framework. After knowing the ground concept of AgileTs, we recommend checking out the [Style Guides](./StyleGuide.md).
111
111
The Style Guides will help you get some inspiration on structuring a scalable application using AgileTs. Now you
112
112
are ready to use AgileTs wherever you want. In case you need some more information about some functionalities of AgileTs,
113
-
use the search bar in the top right corner. If you have any questions and can't find the correct answer in the
114
-
documentation, don't hesitate to join our [Discord Community](https://discord.gg/T9GzreAwPH).
113
+
use the search bar in the top right corner. In case you have any further questions don't hesitate to join our [Community Discord](https://discord.gg/T9GzreAwPH).
A Computed is an extension of the `State Class`, it does automatically compute its value depending on other Agile Instances like States, Collections, ..
61
+
A Computed is an extension of the `State Class`,
62
+
it automatically computes its value depending on other Agile Sub Instances like States, Collections, ..
Copy file name to clipboardExpand all lines: docs/packages/core/features/agile-instance/Introduction.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,9 @@ The `Agile Class` is the foundation of AgileTs. Everything related to AgileTs de
15
15
```ts
16
16
const App =newAgile();
17
17
```
18
-
It can be seen as your application store, which manages and stores each `Agile Sub Instance` (ASI).
19
-
The `Agile Class` doesn't contain these ASI's internally, but each ASI includes a reference to the main `Agile Class`. For instance, to pass something into the `runtime`.
18
+
It can be seen as your application store, which manages each `Agile Sub Instance` (ASI).
19
+
The `Agile Class` doesn't contain these ASI's internally, but each ASI includes a reference to the main `Agile Class`.
20
+
For instance, to pass something into the `runtime`.
20
21
Here are some Agile Sub Instances (ASI):
21
22
22
23
-[State](../state/Introduction.md)
@@ -43,7 +44,8 @@ In summary, the main tasks of an instantiated `Agile Class` (Agile Instance) are
43
44
- trigger rerender on Integrations like [React](../../../react/Introduction.md)
44
45
- store values in any [Storage](../storage/Introduction.md)
45
46
46
-
Be aware that each application using AgileTs should have **one**`Agile Instance` because multiple can cause trouble.
47
+
Be aware that each application using AgileTs needs at least one `Agile Instance`,
48
+
but also shouldn't have more, because multiple `Agile Instance` in one application might cause trouble.
A `Collection` takes an optional configuration object as its only property.
171
+
A `Collection` takes an optional configuration object as its only parameter.
168
172
There are two different ways of configuring a Collection. Both have their advantages.
169
173
170
174
-**1.** The plain _object_ way, which is notorious for its ease of use.
171
-
Because here, we configure everything in a specific object. For instance, this makes the creation of Groups pretty straightforward. But on the other hand, it gives us some limitations since we aren't creating and configuring the Groups and Selectors on our own. The Collection takes care of it instead.
175
+
Here, we configure everything in a specific object. For instance, this makes the creation of Groups pretty straightforward.
176
+
But on the other hand, it gives us some limitations since we aren't creating and configuring the Groups and Selectors on our own.
177
+
The Collection takes care of it instead.
172
178
```ts
173
179
const Collection =App.createCollection({
174
180
key: 'dummyCollection',
175
181
group: ["dummyGroup"]
176
182
})
177
183
```
178
184
179
-
-**2.**The_function_way, whereafunction, which has the Collection as first parameter, returns the configuration object. This gives us more freedom in configuring Instances like Groups, since we have access to the Collection and can create them on our own.
185
+
-**2.**The_function_way, whereafunction, which has the Collection as first parameter, returns the configuration object.
186
+
This gives us more freedom in configuring Instances like Groups,
187
+
since we have access to the Collection and can create them on our own.
0 commit comments