barkey/packages/frontend
dakkar 7c61b57939 make sure that the DynamicNote component is *not* computed
my current hypothesis to explain #1059:

- we have a timeline, with some notes
- a new note arrives on the websocket
- we replace the items in the pagination inside the timeline
- vue starts re-rendering the notes, using the `:key` values to know
  which ones to leave there and which ones to move / add / delete
- since DynamicNote is `computed`, every time vue needs to instantiate
  it, it does an `await`
- so if another note is waiting in the websocket buffer, it gets
  processed *while vue is rendering*
- processing the new note cause the `items` map (and the array
  computed from it) to be replaced
- at this point vue may well get a new iterator from the start of the
  new list of items, after it had already decided that the first few
  notes did not need to be changed
- which manifests as new notes appearing in the middle of the
  timeline!
- and after enough new notes have arrived, all the old notes are out
  of the items map, so their elements have all been deleted, and
  "normality" is restored

this makes sense in my head, let's see if this change actually fixes
the problem
2025-05-21 18:27:39 +01:00
..
.storybook Merge branch 'misskey-develop' into merge/2025-03-24 2025-04-29 15:54:11 -04:00
.vscode test(#10336): add components/Mk[A-B].* stories (#10475) 2023-04-13 12:20:39 +09:00
@types merge upstream 2025-03-25 16:14:53 -04:00
assets licence should be it's own header 2025-05-09 02:39:49 -05:00
lib feat: show file name for warning / errors of [create-search-index] (#15785) 2025-04-09 08:10:04 +09:00
public
src make sure that the DynamicNote component is *not* computed 2025-05-21 18:27:39 +01:00
test Update summaly 2025-04-27 13:31:27 -04:00
.gitignore
eslint.config.js exclude storybook components from restricted globals rule 2025-04-02 10:42:04 -04:00
package.json bump VueJS again 2025-05-21 18:26:49 +01:00
tsconfig.json merge upstream 2025-03-25 16:14:53 -04:00
vite.config.ts remove unused imports from vite.config.ts 2025-04-13 19:58:12 -04:00
vite.json5.ts
vite.replaceIcons.ts Fix missing icon, Fix import of all notes being outside all notes folder 2025-05-08 01:40:40 +02:00
vue-shims.d.ts