repos / starfx

supercharged async flow control library.
git clone https://github.com/neurosnap/starfx.git

commit
d4d1134
parent
6334085
author
Eric Bower
date
2024-08-17 01:45:16 +0000 UTC
docs: copy
4 files changed,  +15, -2
M docs/main.go
+1, -1
1@@ -98,7 +98,7 @@ func main() {
2 			{
3 				Text: "Loaders",
4 				Href: "/loaders",
5-				Page: pager("loader.md"),
6+				Page: pager("loaders.md"),
7 			},
8 			{
9 				Text: "Structured Concurrency",
M docs/posts/dispatch.md
+13, -0
 1@@ -26,6 +26,19 @@ const store = createStore({ initialState });
 2 store.dispatch({ type: "action", payload: {} });
 3 ```
 4 
 5+# Dispatch in thunk
 6+
 7+```ts
 8+import { put } from "starfx";
 9+
10+function* thunk(ctx, next) {
11+  yield* put({ type: "click" });
12+  yield* next();
13+}
14+```
15+
16+# Dispatch in react
17+
18 You can also use dispatch with a `react` hook:
19 
20 ```tsx
R docs/posts/loader.md => docs/posts/loaders.md
+0, -0
M docs/posts/schema.md
+1, -1
1@@ -182,7 +182,7 @@ in your system.
2 ## `loaders`
3 
4 This is a specialized database table specific to managing loaders in `starfx`.
5-[Read more about loaders here](/loader).
6+[Read more about loaders here](/loaders).
7 
8 ```ts
9 const [schema] = createSchema({