senchabot-opensource / monorepo

Open source Discord bot and Twitch bot monorepo. Senchabot apps and packages.
https://senchabot.app
GNU General Public License v3.0
85 stars 23 forks source link

refactor(apps/web): use react-query in `<LinkAccount />` component #370

Closed rasitds closed 5 months ago

rasitds commented 11 months ago

We can refactor the component using react query. Use #340 as example

Also, one of the loading components can be used to show loading while the data is being fetched

Instructions

  1. Find LinkAccount component.
  2. Find a component that using react-query.
  3. Update LinkAccount component with react-query to remove useEffect data fetching.