kbss-cvut / termit-ui

UI for TermIt Vocabulary Manager
GNU General Public License v3.0
4 stars 6 forks source link

Navigation between files from different vocabularies causes term selector to show cached terms #491

Closed ledsoft closed 1 month ago

ledsoft commented 1 month ago

Description

If I open a file in one vocabulary, then go to another vocabulary and open a file there, term selector offers me terms from both vocabularies.

The problem is in twofold:

  1. Reducer does not clear annotatorTerms on fetch of new ones
  2. ResourceFileDetail uses stale redux state (state.selectedFile) to resolve text analysis records, resource detail and other critical data.

Severity

It is not a critical problem because annotator is able to load relevant terms eventually, but it does so by loading terms one by one, which is highly inefficient