From c06fb146bc93d53bf4cfab74739ef8520ef305c4 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 14 Mar 2020 21:02:20 -0400 Subject: [PATCH] Just use Object.values rather than keys. Something is not working right (re-render does not occur) if you switch forms and there were shared keys. --- src/FormView.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FormView.tsx b/src/FormView.tsx index 4ad7f96..9e81ccd 100644 --- a/src/FormView.tsx +++ b/src/FormView.tsx @@ -15,15 +15,15 @@ interface FormProps { } export default function FormView(props: FormProps) { - const lineKeys = createMemo(() => Object.keys(props.form.lines)); + const lines = createMemo(() => Object.values(props.form.lines)); return ( <>

Form {props.form.name}

- - {key => } + + {line => }
-- 2.43.5