Skip to content

Image is not redrawn on update #15

@testower

Description

@testower

In reference to: #6 (comment)

The image does not seem to be redrawn after first render, even when the props change. Boxes update correctly, but the image stays the same. Even when passing "forceRedraw" prop doesn't help. Maybe I'm using this component incorrectly?

const ImageWithBoundingBoxes = ({ imageUrl, labels }) =>
  <BoundingBox
    forceRedraw
    image={imageUrl}
    boxes={labels}
    options={{
      colors: {
        normal: 'red',
        selected: 'rgba(0,225,204,1)',
        unselected: 'rgba(100,100,100,1)'
      },
      style: {
        maxWidth: '100%',
        maxHeight: '90vh'
      }
    }}
  />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions