nishiki-tech / nishiki-frontend

Nishiki is an app for tracking and sharing food inventories within groups for better pantry management.
https://nishiki.tech
MIT License
20 stars 5 forks source link

Optimize data fetching #262

Open kanta1207 opened 6 months ago

kanta1207 commented 6 months ago

Description

Currently, we invoke refetching on every single POST, PUT, DELETE request. We obviously want to optimize it by storing the data in state in the initial fetching, and update the state instead of refetching.

Related Issues

nick-y-ito commented 6 months ago

@kanta1207 Thank you for creating the issue :) We must address this shortly!!

nick-y-ito commented 6 months ago

This unnecessary data fetching in the foods page must be improved!! https://github.com/nishiki-tech/nishiki-frontend/pull/271#issuecomment-1969506508