(store: ReturnType<typeof createStore>)
| 116 | const setVFileFuncMap = new WeakMap<ReturnType<typeof createStore>, CreateSetVFileReturn>() |
| 117 | |
| 118 | export const createSetVFileByStore = (store: ReturnType<typeof createStore>) => { |
| 119 | if (!setVFileFuncMap.has(store)) { |
| 120 | setVFileFuncMap |
| 121 | .set(store, createSetVFile(setVFiles => store.set(vFilesAtom, setVFiles))) |
| 122 | } |
| 123 | return setVFileFuncMap.get(store)! |
| 124 | } |
| 125 | |
| 126 | export const vFilesAtom = atom<VFile[]>([]) |
| 127 |
no test coverage detected