<script>
import Comp from './Comp.svelte'
let value
let rerender=true
</script>
{#key rerender}
<Comp bind:value />
{/key}
<p>
{value}
<!-- isn't reset by rerendering the component -->
</p>
<button on:click={() => {
rerender = !rerender
if (value) value = undefined
}}>
2. rerender Comp
</button>