Skip to content

Commit

Permalink
regression: pass user in dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
Palanikannan1437 committed Nov 26, 2024
1 parent 58178cf commit 1a66f3c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useLayoutEffect, useMemo, useState } from "react";
import { useEffect, useMemo, useState } from "react";
import { HocuspocusProvider } from "@hocuspocus/provider";
import Collaboration from "@tiptap/extension-collaboration";
import { IndexeddbPersistence } from "y-indexeddb";
Expand Down Expand Up @@ -47,7 +47,7 @@ export const useReadOnlyCollaborativeEditor = (props: TReadOnlyCollaborativeEdit
},
onSynced: () => setHasServerSynced(true),
}),
[id, realtimeConfig, serverHandler, user.id]
[id, realtimeConfig, serverHandler, user]
);

// indexed db integration for offline support
Expand Down

0 comments on commit 1a66f3c

Please sign in to comment.