From bf97414530c0ce068c53fa651e2578728790924d Mon Sep 17 00:00:00 2001 From: David Luzar Date: Sat, 6 Mar 2021 14:23:25 +0100 Subject: [PATCH] fix: rerender UI on `renderFooter` prop change (#3183) --- src/components/LayerUI.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index 5c8adcf7..6bcaac7e 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -704,6 +704,7 @@ const areEqual = (prev: LayerUIProps, next: LayerUIProps) => { const keys = Object.keys(prevAppState) as (keyof Partial)[]; return ( + prev.renderCustomFooter === next.renderCustomFooter && prev.langCode === next.langCode && prev.elements === next.elements && keys.every((key) => prevAppState[key] === nextAppState[key])