(key: string | undefined)
| 76 | const recentKey = () => (recentWrite ? recentValue : recent.key) |
| 77 | |
| 78 | const setRecentKey = (key: string | undefined) => { |
| 79 | const write = ++recentWrite |
| 80 | recentValue = key |
| 81 | if (recentReady()) { |
| 82 | setRecent("key", key) |
| 83 | return |
| 84 | } |
| 85 | void recentReady.promise?.then(() => { |
| 86 | if (write === recentWrite) setRecent("key", key) |
| 87 | }) |
| 88 | } |
| 89 | |
| 90 | const removeDraftPersisted = (draftID: string) => { |
| 91 | for (const key of draftPersistedKeys()) removePersisted(Persist.draft(draftID, key), platform) |
no outgoing calls
no test coverage detected