example-dapp: Show the new contract data after the txn submission
Closed this issue · 3 comments
paulbellamy commented
Once you submit the txn we should update the page with the new state.
Update:
- total donations
- your contributions
- crowdfund status
paulbellamy commented
The easiest solution here is probably just to trigger a re-fetch when useSendTransaction
's callback is successful.
esteblock commented
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 commented
Should be marked as Soved @paulbellamy