We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0e1877 commit aa84d94Copy full SHA for aa84d94
docs/usage/modules.md
@@ -26,13 +26,9 @@ below is a little more complicated.
26
S[State]
27
```
28
29
-**Base state for items**
+**Base state**
30
31
-<<< @/../src/module/state/item.js
32
-
33
-**Base state for collections**
34
35
-<<< @/../src/module/state/collection.js
+<<< @/../src/module/State.js#base_state
36
37
### The fields
38
src/module/State.js
@@ -1,3 +1,4 @@
1
+// #region base_state
2
const collection = {
3
loading: false,
4
items: {},
@@ -14,6 +15,7 @@ const item = {
14
15
initial: {},
16
options: {}
17
}
18
+// #endregion base_state
19
20
/**
21
* Return a new Object representing the initial state of a module
0 commit comments