Skip to content

Destroy deposit modal cache upon closing it#3388

Merged
sschiessl-bcp merged 1 commit intobitshares:developfrom
AmmarYousefM:patch-1
Jan 31, 2022
Merged

Destroy deposit modal cache upon closing it#3388
sschiessl-bcp merged 1 commit intobitshares:developfrom
AmmarYousefM:patch-1

Conversation

@AmmarYousefM
Copy link
Copy Markdown
Contributor

In case platform user owns multiple users and wants to deposit to thus different users; they will need to clear the browser cache every time they want to use different user for deposit modal API data.

In case platform user owns multiple users and wants to deposit to thus different users; they will need to clear the browser cache every time they want to use different user for deposit modal API data.
@sschiessl-bcp
Copy link
Copy Markdown
Contributor

destroyOnClose clears browser cache?

@AmmarYousefM
Copy link
Copy Markdown
Contributor Author

destroyOnClose clears browser cache?

It clears only the modal’s cache hence the only way to clear modal’s cache in case you want to switch user is to clear browser’s cache.

@sschiessl-bcp
Copy link
Copy Markdown
Contributor

If I don't switch user I still need to fetch the address every time now, don't I? Maybe the modal should check if the username changed?

@ioBanker
Copy link
Copy Markdown
Member

ioBanker commented Nov 21, 2021

This will cause that every time you open the deposit modal to pick up the asset you want to choose deposit again; I don't see a reasoning behind keeping old records in modal after closing it, if you have please address.

@sschiessl-bcp sschiessl-bcp merged commit 3b128b3 into bitshares:develop Jan 31, 2022
@sschiessl-bcp
Copy link
Copy Markdown
Contributor

Let's try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants