Refactor the useGetHistory hook to use React Query to fetch the History Data
Use the scaffoldConfig.pollingInterval as the refetchInterval which is currently 30 seconds
To test, you can set the pollingInterval to something like 3 seconds locally. Send the burner wallet some funds and the history should update itself (without the need to re-show that initial loading spinner). We can adjust the interval if needed.
Description
useGetHistory
hook to use React Query to fetch the History DatascaffoldConfig.pollingInterval
as therefetchInterval
which is currently 30 secondsTo test, you can set the pollingInterval to something like 3 seconds locally. Send the burner wallet some funds and the history should update itself (without the need to re-show that initial loading spinner). We can adjust the interval if needed.
This should address https://github.com/BuidlGuidl/burnerwallet/issues/54