Requirements:
A tag that is assigned to a lot notes.
Steps:
1. Disable all tags
2. Enable the tag
3. Disable it as fast as possible
Results:
Since the tag is deactivated no note should be visible. But all notes of this tag are displayed.
The reason for this is the follwing:
Everytime a tag is selected a request is sent to the server, processed and sent back. This process takes some time. This time can be from 100ms up to some seconds. Since there is no queue in which the requests are processed, small requests are returned faster.
The problem here is as follows:
The request when disabling a tag is returned much faster than the one that contains all notes to be displayed. So if you select and deselect the tag, both requests are sent. The one with empty content gets returned first, and is displayed, but some time later the request with all notes of the tag is sent back and so this one will be displayed.