@popeindustries/lit-html
Version:
Seamlessly and efficiently use @popeindustries/lit-html-server rendered HTML to hydrate lit-html templates in the browser
6 lines (5 loc) • 435 B
JavaScript
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/import{nothing as i}from"../lit-html.js";import{directive as o,Directive as s}from"../directive.js";import{setCommittedValue as m}from"../directive-helpers.js";class n extends s{constructor(){super(...arguments),this.key=i}render(t,e){return this.key=t,e}update(t,[e,r]){return e!==this.key&&(m(t),this.key=e),r}}const y=o(n);export{y as keyed};