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

example-dapp: Show the new contract data after the txn submission #4

Closed
paulbellamy opened this issue Sep 6, 2022 · 3 comments
Closed

Comments

@paulbellamy
Copy link
Contributor

Once you submit the txn we should update the page with the new state.

Update:

  • total donations
  • your contributions
  • crowdfund status
@paulbellamy
Copy link
Contributor Author

The easiest solution here is probably just to trigger a re-fetch when useSendTransaction's callback is successful.

@esteblock
Copy link
Contributor

This was solved in 82adf51

At the end of the transaction, by calling sorobanContext.connect(), it update the context, and hence, updates all the values that depend on that context.

See:

@esteblock
Copy link
Contributor

Should be marked as Soved @paulbellamy

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

No branches or pull requests

2 participants