Skip to content
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

Fix PictureSequenceInfoField sometimes showing no pictures #646

Merged

Conversation

MariusDoe
Copy link
Collaborator

Closes #625

Before, when switching between two pictures, where the first is part of a sequence, the the other pictures in the sequence are not shown when switching back to the first. The exact reason is unclear, however print debugging has shown that during switching, the correct array of pictures is displayed first, only to be replaced by an empty array shortly after. Since this commit fixes the issue by changing the fetchPolicy from 'cache-first' (default) to 'cache-and-network', the problem is likely related to Apollo's caching behavior.

Before, when switching between two pictures, where the first is part of
a  sequence, the the other pictures in the sequence are not shown when
switching back to the first. The exact reason is unclear, however print
debugging has shown that during switching, the correct array of pictures
is displayed first, only to be replaced by an empty array shortly after.
Since this commit fixes the issue by changing the fetchPolicy from
'cache-first' (default) to 'cache-and-network', the problem is likely
related to Apollo's caching behavior.
@MariusDoe MariusDoe linked an issue Oct 10, 2023 that may be closed by this pull request
@MariusDoe MariusDoe merged commit 8139bd5 into staging Aug 9, 2024
2 checks passed
@MariusDoe MariusDoe deleted the 625-picturesequenceinfofield-sometimes-shows-no-pictures branch August 9, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PictureSequenceInfoField sometimes shows no pictures
3 participants