-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shouldComponentUpdate does not work #1952
Comments
|
Firstly don't use arrow functions
Also check mobxjs/mobx-react#667 (comment) |
|
https://github.com/mobxjs/mobx-react#about-shouldcomponentupdate |
|
Was the question solved? |
|
@mweststrate |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or questions. |
Hi there,
I am sorry for disturbing.
We have very complex app and we faced the problem that
shouldComponentUpdatein some cases work, in some it does not with the same code.We read that it is not recommended to use
shouldComponentUpdatefor MobX.But we use ag-Grid and since it is not written on React, it can not be updated properly and fast for React over changing states. The only way to work fast for ag-Grid with React is using ag-Grid methods.
We need to rerending updating grids container.
Our code definition looks like this.
Sorely I can not provide link on sample for this case.
Please, give me advice.
The text was updated successfully, but these errors were encountered: