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(image navigation): remove flickering, remove in between load images #1127

Conversation

domsteinbach
Copy link
Contributor

resolves DEV-2274 & DEV-2232

… when another image is requested, close viewer if an image has been requested
@domsteinbach domsteinbach marked this pull request as ready for review July 3, 2023 11:26
Copy link
Contributor

@EricSommerhalder EricSommerhalder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, see comments for frustration :)

// multiple pages
this._viewer.close()
if (this.imagesSub) {
this.imagesSub.unsubscribe();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really need state management for this component in the future. This is a hack at best, even though I understand its necessity.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, the whole component needs refactoring. The hack follows the "busieness logic" ...

@domsteinbach domsteinbach merged commit d7b0922 into main Jul 3, 2023
12 checks passed
@domsteinbach domsteinbach deleted the feature/dev-2274-wrong-in-between-images-are-shown-on-paginate branch July 3, 2023 13:01
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.

None yet

2 participants