Skip to content

Commit

Permalink
upgrade react-yjs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikgraf committed Jul 16, 2024
1 parent d1e1eac commit 246e50e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"react-native-screens": "3.31.1",
"react-native-svg": "15.2.0",
"react-native-web": "~0.19.10",
"react-yjs": "^0.0.3",
"react-yjs": "^2.0.0",
"secsync": "^0.5.0",
"secsync-react-yjs": "^0.5.0",
"tailwind-merge": "^2.3.0",
Expand Down
4 changes: 3 additions & 1 deletion apps/app/src/components/document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ const Document: React.FC<Props> = ({ documentKey, documentId }) => {

const yDocument: Yjs.Map<Yjs.Map<any>> = yDocRef.current.getMap("document");
const document = useY(yDocument);
const checklist = document ? convertChecklistToArrayAndSort(document) : [];
const checklist = document
? convertChecklistToArrayAndSort(document as any)
: [];
const [newTodoText, setNewTodoText] = useState("");

const [state, send] = useYjsSync({
Expand Down
11 changes: 6 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 246e50e

Please sign in to comment.