kozakdenys / qr-code-styling

Automaticly generate your styled QR code in your web app.
https://qr-code-styling.com
MIT License
1.57k stars 499 forks source link

Listen for changes and display a loading view #152

Open ChrisCoder9000 opened 2 years ago

ChrisCoder9000 commented 2 years ago

While creating the canvas would be nice to display some kind of loading view instead of a blank view

jzombie commented 1 year ago

So, I'm not the maintainer, but I was stuck with the same issue, and see that it's possible to await the raw data, via:

qrCode.getRawData("svg").then(data => console.log(data));

That might give you what you need to trigger a loader while you're awaiting it to render.