I want to know what is the approach or solution that you recommend when you create a component that needs to call an api to get data to display them later:
So in order to not fetch the list of the users for e.g in every re-render, do you prefer to use react-query library or use cache and manage things by yourself like implementing Redis to cache the data to be used whenever a new fetch will be executed.
What suggestions do you recommend to optimize the performance of the app to reduce useless re-render.
I want to know what is the approach or solution that you recommend when you create a component that needs to call an api to get data to display them later:
So in order to not fetch the list of the users for e.g in every re-render, do you prefer to use react-query library or use cache and manage things by yourself like implementing Redis to cache the data to be used whenever a new fetch will be executed. What suggestions do you recommend to optimize the performance of the app to reduce useless re-render.