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
Copy file name to clipboardExpand all lines: src/packaging-guide/important-info.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,6 @@ Many services have configuration files, such as a config.toml. With start-sdk, t
41
41
When you access a File Model or Store value, you must choose between:
42
42
43
43
-`.once()`: returns the parsed file or Store value and nothing else.
44
-
-`.const()`: returns the parsed file or Store value, and registers an OS tak to re-run the context function if the file or value changes. For example, a `.const()` used to get a "name" value from the Store in `setupInterfaces()` would result in `setupInterfaces()` re-running if the "name" value changes.
44
+
-`.const()`: returns the parsed file or Store value, and registers an OS task to re-run the context function if the file or value changes. For example, a `.const()` used to get a "name" value from the Store in `setupInterfaces()` would result in `setupInterfaces()` re-running if the "name" value changes.
45
45
-`.onChange()`: registers an OS tak to run a callback function that accepts the new file or value. For example, `.onChange((newFileOrValue) => { // do stuff })`
46
-
-`watch()`: returns an async iterator of the new file or value. For example, `.watch()`
46
+
-`watch()`: returns an async iterator of the new file or value. @TODO provide an example
0 commit comments