bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.41k stars 505 forks source link

On next export of png image, the images are from the previous exported component but other fields are all good in NextJS implementation #322

Closed sonangrai closed 1 year ago

sonangrai commented 1 year ago

So I implemented this plugin in my NextJs app where I need to download a component as image. I have the component that has images and some texts. The component images and data gets changes as the props changes. During the first export it looks fine but after that the image field will always be the same as of the first expoted component.

Expected Behavior

The next exported image must have new image that has been updated with props.

Current Behavior

The image of new export is from the first exported image but texts fields are all up to date in exported image.

vivcat[bot] commented 1 year ago

👋 @sonangrai

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

vivcat[bot] commented 9 months ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.