repos / starfx

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

commit
76ffa37
parent
aa996a1
author
Eric Bower
date
2023-11-23 02:48:16 +0000 UTC
docs: readme
1 files changed,  +6, -1
M README.md
+6, -1
 1@@ -82,9 +82,14 @@ store.dispatch(fetchUsers());
 2 ```ts
 3 import { configureStore, createSchema, slice } from "starfx/store";
 4 
 5+interface User {
 6+  id: string;
 7+  name: string;
 8+}
 9+
10 // app-wide database for ui, api data, or anything that needs reactivity
11 const { db, initialState, update } = createSchema({
12-  users: slice.table(),
13+  users: slice.table<User>(),
14   cache: slice.table(),
15   loaders: slice.loader(),
16 });