Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TanStack Query to cache api response #277

Open
Tracked by #154
ioay opened this issue Feb 28, 2024 · 2 comments
Open
Tracked by #154

Add TanStack Query to cache api response #277

ioay opened this issue Feb 28, 2024 · 2 comments
Labels

Comments

@ioay
Copy link
Contributor

ioay commented Feb 28, 2024

Originally mentioned by @r-czajkowski : #245 (comment)

@nkuba
Copy link
Member

nkuba commented Jul 8, 2024

@kkosiorowska was it handled in #520?

@kkosiorowska
Copy link
Contributor

Not exactly. But I think we leave this task. #520 has implemented TanStack Query for the few queries needed. But we don't use it everywhere. We'd probably want to review the already-implemented queries and switch to the TanStack where we can.

r-czajkowski added a commit that referenced this issue Nov 7, 2024
Ref #811
Ref #277
Closes #814
Closes #813

This PR updates screens for deposit and withdrawal flows. The "Skeleton"
loading screen from both Deposit and Withdraw flows is no longer needed.
The new flow adds two steps:

- "Opening your wallet for signature" Screen
- "Awaiting Transaction" Screen

Flow:
1. User initiates deposit: After pressing the Deposit/Withdraw CTAs, the
user first sees the “Opening your wallet for signature” screen
2. Display wallet modal
3. Transition to ‘Awaiting Transaction’: Once the wallet modal is
prompted, switch to the “Awaiting Transaction” screen while the user
completes the signature.
4. Return to dapp: After signing with the wallet, the user returns to
your dapp, where the “Awaiting Transaction” screen remains visible as
needed.
5. Confirm deposit/withdraw: Once transaction is complete, display the
“Deposit received” or "Withdrawal inititated" screens to confirm
completion.


https://github.com/user-attachments/assets/899263a7-0895-48ba-881e-c61b70e4c32d
@nkuba nkuba changed the title Add TanStack Query to cache api resposne Add TanStack Query to cache api response Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants