mirror of
https://github.com/mue/mue.git
synced 2026-07-17 14:04:09 +02:00
feat: hot reload for clock and greeting
This commit is contained in:
@@ -110,6 +110,9 @@ export default class Greeting extends React.PureComponent {
|
||||
return element.style.display = 'none';
|
||||
}
|
||||
|
||||
this.timer = null;
|
||||
this.getGreeting(0);
|
||||
|
||||
element.style.display = 'block';
|
||||
}
|
||||
});
|
||||
|
||||
@@ -96,6 +96,9 @@ export default class Clock extends React.PureComponent {
|
||||
return element.style.display = 'none';
|
||||
}
|
||||
|
||||
this.timer = null;
|
||||
this.startTime(0);
|
||||
|
||||
element.style.display = 'block';
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user