When you work with React app, it normally needs some data from the server to
store it for immediate use (e.g., show it on the page). If the app works with
some complex relational database the work than may be a bit challenging. In
this article I am going to describe the issues with organizing the data,
which we faced during our work on one of DashBouquet projects, and I will
also speak about our solutions.
To make it easier, we will have a look at an example. Let's think of an app
with multiple pages where each page needs certain amount of data from the
server. In case there are enough pages, the amount of data would become too
massive to be fetched at once while loading the app. So the data is requested
for every page load. And for every page we most probably have a partition
where we can save page-related data, so it would be a good idea to put there
fetched data... (more)