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 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,

View file

@ -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,