(
initialContent?: Content | (() => Content),
startSaveFirst = false,
)
| 316 | const isAutoSaving = () => !isUndefined(autoSaveListenerId); |
| 317 | |
| 318 | const startAutoPersisting = async ( |
| 319 | initialContent?: Content | (() => Content), |
| 320 | startSaveFirst = false, |
| 321 | ): Promise<Persister<Persist>> => { |
| 322 | const [call1, call2] = startSaveFirst |
| 323 | ? [startAutoSave, startAutoLoad] |
| 324 | : [startAutoLoad, startAutoSave]; |
| 325 | await call1(initialContent); |
| 326 | await call2(initialContent); |
| 327 | return persister; |
| 328 | }; |
| 329 | |
| 330 | const stopAutoPersisting = async ( |
| 331 | stopSaveFirst = false, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…