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: GUIDE.md
+20-30Lines changed: 20 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ strip = "debuginfo"
48
48
codegen-units = 1
49
49
50
50
[dependencies]
51
-
sqlsync-reducer = "0.1"
51
+
sqlsync-reducer = "0.2"
52
52
serde = { version = "1.0", features = ["derive"] }
53
53
serde_json = "1.0"
54
54
log = "0.4"
@@ -118,17 +118,12 @@ Also, make sure your JS bundling tool supports importing assets from the file sy
118
118
Create a file which will contain type information for your Mutations, the reducer URL, and export some useful React hooks for your app to consume. It should look something like this:
119
119
120
120
```typescript
121
-
import {
122
-
DocType,
123
-
createDocHooks,
124
-
serializeMutationAsJSON,
125
-
} from"@orbitinghail/sqlsync-react";
126
-
127
-
// Path to your compiled reducer artifact, your js bundler should handle making
128
-
// this a working URL that resolves during development and in production.
0 commit comments