Storing calculations and speeding up the webapp


I’m building a web app to track sales progress and goals during marketing campaigns. All data will be from API, I must prepare the app to present it. The data will be dynamic and updated a few times a day.

Screenshot 2024-02-08 at 22.44.26

The logic in the table is working as expected:

But now I’m thinking about doing charts for each dealer and the whole campaign.
Also, I want to add formatting of the cells based on the Goal progress.

I don’t want to build the whole request each time, it’s slow and hard to develop, work on, and maintain.

What would you use? What’s more efficient way?

Store values into custom states maybe, or groups to store specific data points or repeating groups to store lists of data points, which are populated via API result and used as data sources for charts etc.

1 Like