-
My file upload component with custom Any thoughts on how to track this down would be greatly appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
hey @asibilia MUI perhaps can help with this by ensuring the drawer is kept mounted. If this doesnt help you will need to either find a different way to keep the preview mounted when upload begins, no way around that i'm afraid. Or you will need to handle the life-cycle events on your own and render your own preview component to show the uploads based on your app's state. Hope this helps |
Beta Was this translation helpful? Give feedback.
hey @asibilia
I believe this is most likely related to the fact that the UploadPreview isnt mounted when the upload start events are fired and therefore the event-handler the preview relies on isnt fired. In this case the preview wont be aware of the uploads and you will experience the behavior you described.
MUI perhaps can help with this by ensuring the drawer is kept mounted.
I suggest giving this a try.
If this doesnt help you will need to either find a different way to keep the preview mounted when upload begins, no way around that i'm afraid. Or you will need to handle the life-cycle events on your own and render your own preview component to show the uploads based on your app's state.