...
Task 2 - Update hook for get new objects of sanity (validate cache)
Update src/hooks/use-feature-qrcodefree-refill-drinks/use-feature-qrcodefree-refill-drinks.ts hook for get stores and items of sanity.:
Update the localStorage destructuring
(freeRefillOrderInfos
) to get the restaurantId and cartEntries (that will come from the Successful order)Update the destructuring from
featureQrCodeRefillDrinks
to get the new values from SanityCreate two new methods to validate the restaurant from the order and another to validate if an item from Sanity matchs with an item from the order
Add this new data in cache. → we’ll not implement this for now and created a new task to analyze the performance
DOD-LIKE
Get data with success;
Create or adjust unit tests for this flow;
...