-
Hi, thank you for creating this amazing package. here is my code.
my nextjs package.json
Was anyone else affected by this, I'm wondering. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
hey @ted-dino Can you create a minimal reproducing example (on codesandbox for example) that I can check? |
Beta Was this translation helpful? Give feedback.
-
@yoavniran here is a sample of minimal sandbox. btw, i forgot to mention that i am using nextjs page dir. but if i remove the map function it works just fine, like this.
|
Beta Was this translation helpful? Give feedback.
-
great! i will create a new discussion now. thanks @yoavniran |
Beta Was this translation helpful? Give feedback.
Hey @ted-dino
I hope you managed to sort this out. I missed your reply here.
Indeed, the issue is most likely like you wrote, putting the Uploady in the popover is causing the file input to be unmounted when the popover is closed.
Its not a good practice to re-render the Uploady provider and therefore recommended to place it above parts of the app the are likely to be unmounted.
The upload component itself, button, d&d, etc. you can re-render as needed, of course.