(next: Array<ThreadMeta>)
| 184 | }, []) |
| 185 | |
| 186 | const commit = (next: Array<ThreadMeta>) => { |
| 187 | const sorted = [...next].sort(byRecency) |
| 188 | threadsRef.current = sorted |
| 189 | setThreads(sorted) |
| 190 | writeIndex(sorted) |
| 191 | } |
| 192 | |
| 193 | const createThread = (): ThreadMeta => { |
| 194 | const thread: ThreadMeta = { |
no test coverage detected