mirror of https://github.com/sveltejs/svelte
				
				
				
			Merge pull request #1677 from sveltejs/gh-1660
	
		
	
				
					
				
			Allow non-existent dynamic components to be destroyedpull/1654/head
						commit
						ba7a6c9bc1
					
				@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					export default {
 | 
				
			||||||
 | 
						data: {
 | 
				
			||||||
 | 
							x: true
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						nestedTransitions: true,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						test(assert, component) {
 | 
				
			||||||
 | 
							component.set({
 | 
				
			||||||
 | 
								x: false
 | 
				
			||||||
 | 
							});
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					{#if x}
 | 
				
			||||||
 | 
						<svelte:component this={null}/>
 | 
				
			||||||
 | 
					{/if}
 | 
				
			||||||
					Loading…
					
					
				
		Reference in new issue