MareikeFla / community-app

https://community-app-topaz.vercel.app
5 stars 0 forks source link

DS - Structured data fetching #97

Closed MareikeFla closed 6 months ago

MareikeFla commented 6 months ago

This DS goal was it to improve our data fetching. To do so, I first analyzed where we fetch what and then created a plan to improve fetching.

Analyze where we fetch

Event/s

useSWR

fetch()

Categories (all useSWR)

Other

Plan

Having a context that provides:

A. Data

use useSWR to fetch:

B. Functions

Functions using the context data:

Functions not using the context data:

Goal

All data fetching is centralized in our data context.

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
community-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 19, 2024 6:07pm
MareikeFla commented 6 months ago

Thanks! This was a lot of fun and I am so happy it worked out like I wanted it to be!