From 07d6c6aa32509a676f9d5b5e3abea1e382374f42 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Fri, 26 Jun 2020 11:14:31 +0200 Subject: webui: render component's children as a function to avoid uncecessary rendering Co-authored-by: Quentin Gliech --- webui/src/pages/bug/Bug.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'webui/src/pages/bug') diff --git a/webui/src/pages/bug/Bug.tsx b/webui/src/pages/bug/Bug.tsx index 7057f5a1..34a3aa26 100644 --- a/webui/src/pages/bug/Bug.tsx +++ b/webui/src/pages/bug/Bug.tsx @@ -90,9 +90,11 @@ function Bug({ bug }: Props) {
-
- -
+ {() => ( +
+ +
+ )}
-- cgit