i don’t have any code, because the code i have is ‘working’, meaning, it generates the values i need, but not in the time i need them. allow me to explain:
i have one calculated value that creates an array of ids and returns the length of the array.
i need to now take that created array of ids and query the database to fetch a count of records that match the ids in the array AND an additional criteria.
as the database gets updated through the functioning of app, i need to recalculate those matches.
my want is to use a calculated value, but i know that they don’t wait for axios returns. so my question is, how do i solve this problem? would a
watch be a better solution in this scenario?