PotLock / potlock-nextjs-app

Potlock NextJS App
https://potlock-next-app.vercel.app
5 stars 9 forks source link

[BUG] Pot donations table is empty by default #241

Open carina-akaia opened 6 days ago

carina-akaia commented 6 days ago

Despite the data being available, the donations table on the pot page contains no items until the search is triggered. The DonationsTable component currently uses useOrderedDonations hook, which is the part of the issue, as it contains too much state overhead and relies on a deprecated fetcher wrapped in useEffect and must be refactored around an indexer API query hook for pot donations that needs to be created for the pot donations endpoint