-
Hi, Is there a way to start uploady with previous state ? It's useful for the user to start uploading files, leave for a while, and add files later. I didn't find a way to do that, maybe I've skipped it. Bset, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @TheMadKow This way, you will only have one Uploady instance and you wont need to transfer state. Also, if the user uploads files, does more work, and then comes back to the email. why do you need to transfer the "state" from the previous uploads? Arent they already uploaded? In general I dont recommend relying on Uploady's inner state for an app's UI. It's better to save the info you need into the app's state using Uploady's hooks/events |
Beta Was this translation helpful? Give feedback.
Hi @TheMadKow
From what you described I think it will be possible to achieve this simply by moving the
<Uploady>
declaration to a higher place in your app.This way, you will only have one Uploady instance and you wont need to transfer state.
Also, if the user uploads files, does more work, and then comes back to the email. why do you need to transfer the "state" from the previous uploads? Arent they already uploaded?
If you need a way to show that info about the files uploaded, you can store the info for the item(s) that you get from a hook such as
useItemFinalizeListener
in your app's state.In general I dont recommend relying on Uploady's inner state for an app's UI. It's better to sav…