This issue has been created
 
 
Guided Tour / cid:jira-generated-image-avatar-eec02142-504c-417f-a060-aa0039f1da4e GUIDEDTOUR-23 Open

General improvements for caching in TourStore

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-8cf5fb3d-9672-4a6f-992b-4098fc13471a Brassat Alexandru created this issue on 24/Jul/26 15:04
 
Summary: General improvements for caching in TourStore
Issue Type: cid:jira-generated-image-avatar-eec02142-504c-417f-a060-aa0039f1da4e Improvement
Assignee: Unassigned
Created: 24/Jul/26 15:04
Priority: cid:jira-generated-image-static-major-d5c32b02-5c33-4eb2-8058-380243a50e5d Major
Reporter: Brassat Alexandru
Description:

The TourStore currently relies on `.getTours()` to be called to populate the in-memory cache with all the objects. This can lead to bugs and hard-to-use APIs.

The TourStore API and functionality should be improved, either by refactoring it or not relying on it anymore. Some possible options:

  1. Enable the browser cache for the REST endpoints and use that as the cache
  2. Rely on an external library like [@pinia/colada](https://pinia-colada.esm.dev/) to handle the fetching.
  3. Refactoring the existing TourStore API to improve usability