Skip to content

Commit 524e8d4

Browse files
Maximillion195Christopher J Baker
andauthored
Fix to allow the DOM element to be removed and readded (#124)
* Fix to allow the DOM element to be removed and readded --------- Co-authored-by: Christopher J Baker <[email protected]>
1 parent 1a6886a commit 524e8d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/src/core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export default function r2wc<Props, Context>(
114114
if (this[contextSymbol]) {
115115
renderer.unmount(this[contextSymbol])
116116
}
117+
delete this[contextSymbol]
117118
}
118119

119120
attributeChangedCallback(

0 commit comments

Comments
 (0)