GBKS / bitcoin-wallet-ui-kit

A design system and UI kit for Bitcoin wallet applications.
https://www.bitcoinuikit.com
24 stars 3 forks source link

Updated code for asynchronous page loading #55

Closed GBKS closed 3 months ago

GBKS commented 3 months ago

This is a required update for plug-ins by April 1. I also just pushed this live to Figma community.

Basically, some Figma files are getting huge. So Figma does not load all pages anymore right away when opening a file, but only those you access. Helps keep memory manageable. That also means plug-ins need to be sensitive to what's loaded and what isn't, and request pages to be loaded before trying to access them. That's what these code changes address.

Figma's migration doc says to set up this complex Typescript and linting dev environment. I was not able to get it to work (as usual), so I just ignored it and don't use linting. Overall, I have just never been able to get their recommended environment running.