mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-10-31 10:54:33 +01:00 
			
		
		
		
	fix: make tunnels work in multi-instance scenarios (#6178)
* fix: make tunnels work in multi-instance scenarios * factor tunnels out * use tunnel-rat fork until upsteam updated
This commit is contained in:
		| @@ -13,7 +13,7 @@ import { t } from "../../i18n"; | ||||
| import { HamburgerMenuIcon } from "../icons"; | ||||
| import { withInternalFallback } from "../hoc/withInternalFallback"; | ||||
| import { composeEventHandlers } from "../../utils"; | ||||
| import { mainMenuTunnel } from "../tunnels"; | ||||
| import { useTunnels } from "../context/tunnels"; | ||||
|  | ||||
| const MainMenu = Object.assign( | ||||
|   withInternalFallback( | ||||
| @@ -28,6 +28,7 @@ const MainMenu = Object.assign( | ||||
|        */ | ||||
|       onSelect?: (event: Event) => void; | ||||
|     }) => { | ||||
|       const { mainMenuTunnel } = useTunnels(); | ||||
|       const device = useDevice(); | ||||
|       const appState = useExcalidrawAppState(); | ||||
|       const setAppState = useExcalidrawSetAppState(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 David Luzar
					David Luzar