From 0d655c285631c7547cd9e434ff617186abe6c134 Mon Sep 17 00:00:00 2001 From: Misha Rodshtein <13717428+rodshtein@users.noreply.github.com> Date: Wed, 9 Feb 2022 12:56:59 +1000 Subject: [PATCH] Update 02-template-syntax.md Removed: > Note that we can't do `{cart.empty}` since `cart` is `undefined` when the button is first rendered and throws an error. It fixed in 3.16.7 Issue: https://github.com/sveltejs/svelte/issues/4090 --- site/content/docs/02-template-syntax.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index f80ddfee05..7021121b79 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -1427,8 +1427,6 @@ bind:this={component_instance} Components also support `bind:this`, allowing you to interact with component instances programmatically. -> Note that we can't do `{cart.empty}` since `cart` is `undefined` when the button is first rendered and throws an error. - ```sv