ossmate / coderscamp_2021_spa_project_2

coderscamp-2021-spa-project-2.vercel.app
0 stars 1 forks source link

Feature/26/home page latest transaction component #65

Closed axseinga closed 2 years ago

axseinga commented 2 years ago
vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/m-ossolinski/coderscamp-2021-spa-project-2/8e9MvH6yz6u3C6csdCd9Wq5ZWGUK
✅ Preview: https://coderscamp-2021-spa-project-2-git-feature-2-955119-m-ossolinski.vercel.app

axseinga commented 2 years ago

Are you planning to change hard coded data and take the last transactions from db.json?

I am planning (after consulting with Mateusz) to move fetching transactions data to a higher component and then pass it down via useContext. This way we could code functions that are passed down to all components responsible for adding/deleting/editing transactions and those components could trigger re-fetching our data and update of all other components. So for now I left it with mock data (and for not messing with db anymore ;D)