stellar/soroban-example-dapp

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

Closed this issue · 3 comments

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

Update:

  • total donations
  • your contributions
  • crowdfund status

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

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:

Should be marked as Soved @paulbellamy