workbenchapp / solana-workbench

Your one-stop shop for developing on Solana
MIT License
63 stars 7 forks source link

Move towards using react-query for account data lifecycles #215

Closed SvenDowideit closed 2 years ago

SvenDowideit commented 2 years ago

there's some cache stuff in here too, but I won't use it for the programchanges getAccount cache yet - its useful for the getParsedAccount and token ata list tho

closes #206 closes #207

and probably #209

extra issues that can be done later:

SvenDowideit commented 2 years ago

@nathanleclaire please review and merge :)

this is a shed tonne faster to render, and is allowing me to sit watching ProgramChanges on mainnet-beta, viewing my real account in the AccountView.

its not perfect, because we don't get to batch getParsedAccount yet :) but fixing that is imo a future PR

(for eg 48Dactjx3zuJujtBHZ5cd2w3maKFFGsKhn1sXzU59VGK - https://explorer.solana.com/address/48Dactjx3zuJujtBHZ5cd2w3maKFFGsKhn1sXzU59VGK just got me kicked off - waited 2 minutes, and its back tho...)

SvenDowideit commented 2 years ago

need to start integration testing, merging