You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
I'm seeing a ton of these:
Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op.
Every time query changes in TestList, getMeteorState gets called in each Test, even though the Test itself doesn't change..
EDIT: OK, so implementing shouldComponentUpdate removes the warning. But is it necessary that getMeteorState be called? Intuitively it doesn't seem necessary, but maybe I don't understand this well enough.
Hi,
See repro here: https://github.com/froatsnook/meteor-react-set-state-warning
I'm seeing a ton of these:
Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op.
Basically I have:
where
<Test />is:Every time
querychanges inTestList,getMeteorStategets called in eachTest, even though the Test itself doesn't change..EDIT: OK, so implementing
shouldComponentUpdateremoves the warning. But is it necessary thatgetMeteorStatebe called? Intuitively it doesn't seem necessary, but maybe I don't understand this well enough.