Explorar o código

fix: rerender UI on `renderFooter` prop change (#3183)

David Luzar %!s(int64=4) %!d(string=hai) anos
pai
achega
bf97414530
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/components/LayerUI.tsx

+ 1 - 0
src/components/LayerUI.tsx

@@ -704,6 +704,7 @@ const areEqual = (prev: LayerUIProps, next: LayerUIProps) => {
 
   const keys = Object.keys(prevAppState) as (keyof Partial<AppState>)[];
   return (
+    prev.renderCustomFooter === next.renderCustomFooter &&
     prev.langCode === next.langCode &&
     prev.elements === next.elements &&
     keys.every((key) => prevAppState[key] === nextAppState[key])