Sharkey/packages/frontend
dakkar dbfafe25e3 rework pagination - fixes #491
previously, when adding items either at the beginnig (e.g. new notes
coming in while we're not looking at the top of the timeline) or a the
end (e.g. more items arriving from a background fetch) of a paginated
view, the resulting list got truncated to `displayLimit`, potentially
throwing data away and causing a new fetch.

This, coupled with the async nature of scrolling & fetching, could
cause weird results.

Also, `offset` was always incremented by the size of the fetched
results, even if not all of them were displayed, meant that it was
possible for offset-based pagination to drop items.

Finally, the "queue" of new items (usually, new notes) also got
truncated to `displayLimit`, which again could drop items (this effect
was usually masked by the first point: when scrolling to the top of
the timeline, if the queue's length was equal to `displayLimit`, those
notes displaced any existing ones, `unshiftItems` set
`more.value=true`, you got scrolled to the top, and notes were fetched
again, so you lost your position but at least all notes got shown,
eventually)
2024-04-19 13:35:18 +01:00
..
.storybook merge upstream for 2024.2.1 2024-03-02 16:36:49 +00:00
.vscode test(#10336): add components/Mk[A-B].* stories (#10475) 2023-04-13 12:20:39 +09:00
@types (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
assets fix: load libopenmpt on demand 2024-03-11 15:32:59 +03:00
lib merge: upstream 2024-02-19 10:47:42 +01:00
public (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
src rework pagination - fixes #491 2024-04-19 13:35:18 +01:00
test merge upstream for 2024.2.1 2024-03-02 16:36:49 +00:00
.eslintrc.cjs refactor(frontend): 非推奨となったReactivity Transformを使わないように (#12539) 2023-12-07 14:42:09 +09:00
.gitignore build(#10336): Storybook & Chromatic & msw (#10365) 2023-04-04 09:38:34 +09:00
package.json merge upstream for 2024.2.1 2024-03-02 16:36:49 +00:00
tsconfig.json refactor: deprecate i18n.t (#13039) 2024-01-20 08:11:59 +09:00
vite.config.local-dev.ts merge: upstream 2024-02-03 20:19:44 +01:00
vite.config.ts fix: added wasm in vite config 2024-03-14 14:41:24 +03:00
vite.json5.ts Fix type errors from vite.json5.ts (#9936) 2023-02-15 17:14:47 +09:00
vue-shims.d.ts Fix/vue import error on intellij (#12612) 2023-12-09 13:13:31 +09:00