I want my Figma UI to continue running even when the internet connection is down.
I thought I could achieve this via loadAllPagesAsync() [ figma | Plugin API ] which ‘Loads all pages of the document into memory’.
My UI is comprised of three frames: A, B and C.
I use conditional logic (referencing my local variables which a custom plugin changes every 1 second, for testing purposes ) and the mousehover event over my Frames to establish UX behaviours.
I run the plugin and as the variables change and the mouse over event is active screen A,B or C switch in and out accordingly.
When I run my UI and then kill the wifi connection I get the following errors in my console (see below) and the UX stops working ( plugin still running and variables changing but screen not transitioning in response to mouseover and conditional logic.
Any suggestions on how to achieve offline Figma please?
Thank you for your time
[MultiplayerSession] connecting to wss://www.Figma.com/api/multiplayer/gPMIlcK14XmR8ZJWm6gw3l?role=editor&tracking_session_id=4DOetlAIabiRssI3&version=124&recentReload=0&file-load-streaming-compression=&scenegraph-queries-initial-nodes=0%3A1&incremental-loading-validation=0&user-id&client_release=&clientID=&reconnect-key=&reconnect-sequence-number=71819&initialFileVersion=70&previousLoadMode=incremental
WebSocket connection to ‘wss://www.Figma.com/api/multiplayer/gPMIlcK14XmR8ZJWm6gw3l?role=editor&tracking_session_id=4DOetlAIabiRssI3&version=124&recentReload=0&file-load-streaming-compression=&scenegraph-queries-initial-nodes=0%3A1&incremental-loading-validation=0&user-id=&client_release=&clientID=&reconnect-key=&reconnect-sequence-number=71819&initialFileVersion=70&previousLoadMode=incremental’ failed: Error in connection establishment: net::ERR_INTERNET_DISCONNECTED
POST https://www.figma.com/api/figment-proxy/monitor net::ERR_INTERNET_DISCONNECTED