Fix undo / redo

This commit is contained in:
Steve Ruiz 2021-11-22 16:27:01 +00:00
parent b4d3d929ab
commit fa109fd633
2 changed files with 8 additions and 8 deletions

View file

@ -14,8 +14,8 @@ export function useMultiplayerState(roomId: string) {
const rExpectingUpdate = React.useRef(false)
const room = useRoom()
const undo = useUndo()
const redo = useRedo()
const onUndo = useUndo()
const onRedo = useRedo()
const updateMyPresence = useUpdateMyPresence()
// Document Changes --------
@ -206,8 +206,8 @@ export function useMultiplayerState(roomId: string) {
)
return {
undo,
redo,
onUndo,
onRedo,
onMount,
onChangePage,
onChangePresence,

View file

@ -14,8 +14,8 @@ export function useMultiplayerState(roomId: string) {
const rExpectingUpdate = React.useRef(false)
const room = useRoom()
const undo = useUndo()
const redo = useRedo()
const onUndo = useUndo()
const onRedo = useRedo()
const updateMyPresence = useUpdateMyPresence()
// Document Changes --------
@ -206,8 +206,8 @@ export function useMultiplayerState(roomId: string) {
)
return {
undo,
redo,
onUndo,
onRedo,
onMount,
onChangePage,
onChangePresence,