Skip to content

Commit 0a8f3a4

Browse files
committed
Opt-in to allowUnconfirmedWrites. This isn't recommended for most apps as it can lose data in edge cases. Replidraw does it as it is a tech demo whose main purpose is to show where we are going.
1 parent 2e60bc5 commit 0a8f3a4

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

package-lock.json

+14-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"@cloudflare/workers-types": "^3.11.0",
1515
"@datadog/browser-logs": "^4.11.3",
1616
"@rocicorp/logger": "^2.2.0",
17-
"@rocicorp/reflect": "^0.8.0",
18-
"@rocicorp/reflect-server": "^0.17.0",
17+
"@rocicorp/reflect": "^0.10.0",
18+
"@rocicorp/reflect-server": "^0.18.0",
1919
"@types/node": "^17.0.16",
2020
"@types/react": "^17.0.39",
2121
"@types/react-dom": "^17.0.11",

worker/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ const { worker, RoomDO, AuthDO } = createReflectServer({
5151
},
5252
getLogSinks,
5353
getLogLevel: () => "info",
54+
allowUnconfirmedWrites: true,
5455
});
5556
export { worker as default, RoomDO, AuthDO };

0 commit comments

Comments
 (0)