Skip to content

[UI]: Fix filters changed mid-load - #4421

Merged
jvstme merged 1 commit into
masterfrom
issue_4413_ui_fix_filters_changed_mid_load
Oct 27, 2026
Merged

jvstme merged 1 commit into
masterfrom
issue_4413_ui_fix_filters_changed_mid_load

Conversation

@jvstme

@jvstme jvstme commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

When filters changed while a list page was
loading, the previous request could finish after
the new one and overwrite the table with items
matching the old filters. A pending "load more"
request could likewise append outdated items to
the new list, and the outdated request could reset
the loading flag while the new request was still
running.

Track a generation counter in useInfiniteScroll,
incremented on every list reset, and ignore
responses to requests from earlier generations.

Fixes #4413

When filters changed while a list page was
loading, the previous request could finish after
the new one and overwrite the table with items
matching the old filters. A pending "load more"
request could likewise append outdated items to
the new list, and the outdated request could reset
the loading flag while the new request was still
running.

Track a generation counter in useInfiniteScroll,
incremented on every list reset, and ignore
responses to requests from earlier generations.
@jvstme
jvstme merged commit e103c83 into master Oct 27, 2026
29 checks passed
@jvstme
jvstme deleted the issue_4413_ui_fix_filters_changed_mid_load branch October 27, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: UI list page items do not match filters if filters change mid-load

1 participant