Fix undo / redo
This commit is contained in:
parent
b4d3d929ab
commit
fa109fd633
2 changed files with 8 additions and 8 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue