add comments

pull/10798/head
Rich Harris 2 years ago
parent f50d5f2837
commit ac0c8b3d4d

@ -22,7 +22,11 @@ export function key_block(anchor_node, get_key, render_fn) {
/** @type {import('#client').Effect} */ /** @type {import('#client').Effect} */
let effect; let effect;
/** @type {Set<import('#client').Effect>} */ /**
* Every time `key` changes, we create a new effect. Old effects are
* removed from this set when they have fully transitioned out
* @type {Set<import('#client').Effect>}
*/
let effects = new Set(); let effects = new Set();
const key_effect = render_effect( const key_effect = render_effect(

@ -23,7 +23,11 @@ export function component(anchor_node, get_component, render_fn) {
/** @type {import('#client').Effect} */ /** @type {import('#client').Effect} */
let effect; let effect;
/** @type {Set<import('#client').Effect>} */ /**
* Every time `component` changes, we create a new effect. Old effects are
* removed from this set when they have fully transitioned out
* @type {Set<import('#client').Effect>}
*/
let effects = new Set(); let effects = new Set();
const component_effect = render_effect( const component_effect = render_effect(

Loading…
Cancel
Save