Skip to content

Commit

Permalink
skip default
Browse files Browse the repository at this point in the history
  • Loading branch information
gempir committed May 26, 2024
1 parent f92e6ee commit 5cfcbe3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 144 deletions.
142 changes: 0 additions & 142 deletions web/src/hooks/default_store.ts

This file was deleted.

2 changes: 0 additions & 2 deletions web/src/hooks/useYjsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ import {
import { useEffect, useMemo, useState } from 'react'
import { YKeyValue } from 'y-utility/y-keyvalue'
import * as Y from 'yjs'
import { DEFAULT_STORE } from './default_store'
import { useYDoc, useYjsProvider } from '@y-sweet/react'

export function useYjsStore() {
const [store] = useState(() => {
const store = createTLStore({
shapeUtils: defaultShapeUtils,
})
store.loadSnapshot(DEFAULT_STORE)
return store
})

Expand Down

0 comments on commit 5cfcbe3

Please sign in to comment.