( snippetId: number, contentId: number, data: SnippetContentsAdd, )
| 88 | } |
| 89 | |
| 90 | function addToUpdateContentQueue( |
| 91 | snippetId: number, |
| 92 | contentId: number, |
| 93 | data: SnippetContentsAdd, |
| 94 | ) { |
| 95 | markUserEdit() |
| 96 | const key = getContentUpdateKey(snippetId, contentId) |
| 97 | updateContentQueue.value.set(key, { snippetId, contentId, data }) |
| 98 | |
| 99 | if (inFlightContentKeys.value.has(key)) { |
| 100 | return |
| 101 | } |
| 102 | |
| 103 | scheduleContentUpdate(key) |
| 104 | } |
| 105 | |
| 106 | function getPendingContentUpdate(snippetId: number, contentId: number) { |
| 107 | const key = getContentUpdateKey(snippetId, contentId) |
nothing calls this directly
no test coverage detected