How to override shouldComponentUpdate or prevent re-render when component invisible #2665
Answered
by
urugator
code-brewer
asked this question in
Q&A
-
Hi, all What I want to archive is prevent render action when the component is invisible. So my first thought is to override the But it failed to work: when store data change, the shouldComponentUpdate not called, and render not invoked either.
Any ideas? Thanks for your attention~ |
Beta Was this translation helpful? Give feedback.
Answered by
urugator
Dec 3, 2020
Replies: 1 comment 4 replies
Answer selected by
code-brewer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mobxjs/mobx-react#667 (comment)