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
veeramarni edited this page May 5, 2019
·
2 revisions
When child component which not suppose to be rendered is rendering can be troubleshooted by placing at various component until we find what causing the all child components to render.
public shouldComponentUpdate() {
return false;
}
Apollo Call renders the component multiple times
Keep in mind Apollo would cause the component at least twice, it sets the loading to true while requesting the data from the server and once fetch completes it renders again with updated data.
You can make use of loading state to only render the specific components.