| 42 | export const templatesByPath = {} |
| 43 | export const templateErrorByPath = {} |
| 44 | export const onReloadTemplates = fn => { |
| 45 | onReloadTemplates.listeners.push(fn) |
| 46 | return () => { |
| 47 | onReloadTemplates.listeners = onReloadTemplates.listeners.filter( |
| 48 | d => d !== fn |
| 49 | ) |
| 50 | } |
| 51 | } |
| 52 | onReloadTemplates.listeners = [] |
| 53 | |
| 54 | export const registerTemplates = async (tmps, notFoundKey) => { |
no outgoing calls
no test coverage detected
searching dependent graphs…