chia-blockchain-gui icon indicating copy to clipboard operation
chia-blockchain-gui copied to clipboard

Fix refetching plots after new plot is finished plotting

Open zsolt-dev opened this issue 2 years ago • 4 comments

fixes: https://github.com/Chia-Network/chia-blockchain-gui/issues/1728

What other solutions were considered:

  1. Have the logic of clearing cache directly in the api-react -> spend hours on it, could not make it work. Queries should not clear caches, mutations should...

  2. Have the logic of clearing cache in useGetThrottlePlotQueueQuery -> might be a better place, but this is obvious for the developer that some cache cleaning is happening. I can move it to useGetThrottlePlotQueueQuery if someone thinks its a better place.

Thank you

zsolt-dev avatar May 10 '23 15:05 zsolt-dev

@zsolt-dev can we move it to useGetThrottlePlotQueueQuery?

seeden avatar May 10 '23 15:05 seeden

@seeden Indeed, its a better place for it. I provided and updated version. Thank you

zsolt-dev avatar May 10 '23 15:05 zsolt-dev

Please do not merge as still trying for a better solution...

zsolt-dev avatar May 11 '23 08:05 zsolt-dev

'This PR has been flagged as stale due to no activity for over 60 days. It will not be automatically closed, but it has been given a stale-pr label and should be manually reviewed.'

github-actions[bot] avatar Jul 10 '23 11:07 github-actions[bot]