matrix-art

An image gallery for Matrix
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-art.git
Log | Files | Refs | README | LICENSE

commit f641c2912181b926a4f5084247c70810ead96efa
parent 289124b1eab90409e96c23df2b14f2cd9b51e5e0
Author: MTRNord <mtrnord1@gmail.com>
Date:   Mon,  7 Feb 2022 20:01:04 +0100

Props shouldnt be able to change so lets not update them

Diffstat:
Mcomponents/Header.tsx | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/Header.tsx b/components/Header.tsx @@ -30,7 +30,7 @@ export default class Header extends Component<Props, State> { if (typeof window !== "undefined" && (nextState.loggedIn === undefined || nextState.loggedIn !== !nextContext.client.isGuest)) { return true; } - if (nextProps !== this.props || nextState !== this.state || nextContext !== this.context) { + if (nextState !== this.state || nextContext !== this.context) { return true; } return false;