Closed soundyogi closed 2 years ago
I fear this ticket was misunderstood due to lack of specification. The implementation now keeps all inputs in all fields even after reload of the page and after switching wallet address or logout and re-login. I would have understood this ticket as such that entered form values just dont get overwritten when switching wallet address or canceling trx - but that doesnt mean we have to keep all entered values forever.
Lets discuss this ticket, so I can write proper ACs. (@soundyogi, @2075)
well it is a usecase ( I created a ton of campaigns and when you write long markdown it SUCKS when its all gone so I used external txt files now I dont have to.)
so the form should always be initialized on reload or what is the desired behavior?
also I want to change wallets to copy my 2 needed addresses for the treasury and controller for example. this is useful.
we could delete the cached data when a campaign has been created sucessfully, this way when you create a new one its empty and you dont loose state until then
k, I will delete the localStorage data when the TX clears the next step is the edit pages then, which is another ticket itself
a refresh is triggered that initializes the values in the forms- this needs branching probably