kozakdenys / qr-code-styling

Automaticly generate your styled QR code in your web app.

Home Page:https://qr-code-styling.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Listen for changes and display a loading view

ChrisCoder9000 opened this issue · comments

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

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.