Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { render } from '../../node_modules/lit-html/lib/lit-extended';
export default base =>
class extends base {
render() {}
async invalidate(instant) {
if (!this.needsRender) {
if (!instant) {
this.needsRender = true;
await 0;
this.needsRender = false;
}
render(this.render(), this.shadowRoot);
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment