Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Apollo 2, useless re-render (twice render). Simple example, simple reproduction on codesandbox. #1777

@ghost

Description

Reproduction: https://codesandbox.io/s/72kllvom21

Intended outcome:

Simple example of react-apollo. I have an Home component and a Players component. The Players has a graphql query to retrieve data.

Actual outcome:

The first time I have the good operation: it loads and I have two rendering because of data > loading: true value. The second time I go to that page it render two times but the content is the same and the loading: false both times.

I don't think this is the right way. Where am I wrong? https://codesandbox.io/s/72kllvom21

How to reproduce the issue:

https://codesandbox.io/s/72kllvom21

image

Version

Metadata

Metadata

Assignees

Labels

has-reproduction❤ Has a reproduction in a codesandbox or single minimal repository

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions