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 rExpectingUpdate = React.useRef(false)
|
||||||
|
|
||||||
const room = useRoom()
|
const room = useRoom()
|
||||||
const undo = useUndo()
|
const onUndo = useUndo()
|
||||||
const redo = useRedo()
|
const onRedo = useRedo()
|
||||||
const updateMyPresence = useUpdateMyPresence()
|
const updateMyPresence = useUpdateMyPresence()
|
||||||
|
|
||||||
// Document Changes --------
|
// Document Changes --------
|
||||||
|
@ -206,8 +206,8 @@ export function useMultiplayerState(roomId: string) {
|
||||||
)
|
)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
undo,
|
onUndo,
|
||||||
redo,
|
onRedo,
|
||||||
onMount,
|
onMount,
|
||||||
onChangePage,
|
onChangePage,
|
||||||
onChangePresence,
|
onChangePresence,
|
||||||
|
|
|
@ -14,8 +14,8 @@ export function useMultiplayerState(roomId: string) {
|
||||||
const rExpectingUpdate = React.useRef(false)
|
const rExpectingUpdate = React.useRef(false)
|
||||||
|
|
||||||
const room = useRoom()
|
const room = useRoom()
|
||||||
const undo = useUndo()
|
const onUndo = useUndo()
|
||||||
const redo = useRedo()
|
const onRedo = useRedo()
|
||||||
const updateMyPresence = useUpdateMyPresence()
|
const updateMyPresence = useUpdateMyPresence()
|
||||||
|
|
||||||
// Document Changes --------
|
// Document Changes --------
|
||||||
|
@ -206,8 +206,8 @@ export function useMultiplayerState(roomId: string) {
|
||||||
)
|
)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
undo,
|
onUndo,
|
||||||
redo,
|
onRedo,
|
||||||
onMount,
|
onMount,
|
||||||
onChangePage,
|
onChangePage,
|
||||||
onChangePresence,
|
onChangePresence,
|
||||||
|
|
Loading…
Reference in a new issue