thelounge/client/js/socket-events
Reto Brunner 0ebc3a574c search: ignore searchResults if it isn't the active query
Prior to this, the search is still racy but one tends to notice
this only when the DB is large or network is involved.
The user can initiate a search, get bored, navigate to another chan
issue a different search.

Now however, the results of the first search come back in and
hilarity ensues as we are now confused with the state.

To avoid this, keep track of the last search done and any result
that comes in that isn't equal to the active query is garbage and
can be dropped.
2023-01-08 11:41:09 +01:00
..
auth.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
changelog.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
commands.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
configuration.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
connection.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
history_clear.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
index.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
init.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
join.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
mentions.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
more.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
msg.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
msg_preview.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
msg_special.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
mute_changed.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
names.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
network.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
nick.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
open.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
part.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
quit.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
search.ts search: ignore searchResults if it isn't the active query 2023-01-08 11:41:09 +01:00
sessions_list.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
setting.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
sign_out.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
sync_sort.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
topic.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
users.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00