Skip to content

Persistent uploady state #271

Answered by yoavniran
TheMadKow asked this question in Q&A
Dec 6, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@smartlightning
Comment options

@yoavniran
Comment options

Answer selected by TheMadKow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants