rework @watch decorator

This commit is contained in:
Cory LaViska
2021-06-15 09:26:35 -04:00
parent 3b2b5eed5a
commit 16e7287c24
22 changed files with 61 additions and 97 deletions

View File

@@ -49,6 +49,10 @@ export default class SlQrCode extends LitElement {
@watch('size')
@watch('value')
generate() {
if (!this.hasUpdated) {
return;
}
QrCreator.render(
{
text: this.value,