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

pull/3174/head
David Luzar 4 years ago committed by GitHub
parent f8c3c431da
commit bf97414530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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])

Loading…
Cancel
Save