Hi Tom,
Description:
There appears to be a caching or state management issue when switching between projects in CATMAID.
This behavior has been consistently reproducible across sessions.
It seems like annotation data from the previous project is cached and not properly cleared when switching.
Steps to Reproduce:
-
Open Project A and load its annotations.
-
Switch to Project B using the project switcher.
-
Observe the annotations displayed.
Expected Behavior:
Annotations belonging to Project B should be shown after switching.
Observed Behavior:
Annotations from Project A are still displayed in Project B. Annotations belonging to Project B are missing until the project is manually reloaded (e.g., with a hard refresh).
Current Workaround:
Reloading the browser or manually forcing a full reload of the project clears the annotations from Project A and correctly displays the ones from Project B.
Best,
Samia