From c70029807f3c3c31232153f18adcfeead215a878 Mon Sep 17 00:00:00 2001 From: xuying <33517362+tangying1027@users.noreply.github.com> Date: Wed, 16 Oct 2024 12:04:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=8F=E7=A8=8B=E5=BA=8Fupdate?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0catch=20(#309)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: xuying.xu --- packages/f-my/src/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/f-my/src/index.tsx b/packages/f-my/src/index.tsx index d8e60c3..3edbef3 100644 --- a/packages/f-my/src/index.tsx +++ b/packages/f-my/src/index.tsx @@ -67,10 +67,13 @@ Component({ if (!canvas) return; const { theme, px2hd } = props; const children = props.onRender(props); - canvas.update({ + const updateProps = { theme, px2hd, children, + }; + canvas.update(updateProps).catch((error) => { + this.catchError(error); }); }, didUnmount() {