Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

[Bugfix] Reset Image state when src is updated #395

Conversation

davidvedvick
Copy link

Types of Changes

Prerequisites

Please make sure you can check the following two boxes:

  • I have read the CONTRIBUTING document
  • My code follows the code style of this project

Contribution Type

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue, please reference the issue id): Image does not refresh if preload is true #394
  • New feature (non-breaking change which adds functionality, make sure to open an associated issue first)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Description

The <Image /> tag will not update if preload is set to true. This change resets the <Image /> state when the src changes and preload is true. This change will also properly clean-up the hidden image tag when the component unmounts.

@CLAassistant
Copy link

CLAassistant commented Apr 7, 2023

CLA assistant check
All committers have signed the CLA.

@davidvedvick davidvedvick changed the title Reset state when src is updated [Bugfix] Reset state when src is updated Apr 7, 2023
@davidvedvick davidvedvick changed the title [Bugfix] Reset state when src is updated [Bugfix] Reset Image state when src is updated Apr 12, 2023
@benbouba benbouba closed this Jul 9, 2025
@benbouba
Copy link
Collaborator

benbouba commented Jul 9, 2025

This repository is being archived, and all PRs have been closed as part of the process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants