MCPcopy Create free account
hub / github.com/react-static/react-static / onReloadTemplates

Function onReloadTemplates

packages/react-static/src/browser/index.js:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42export const templatesByPath = {}
43export const templateErrorByPath = {}
44export const onReloadTemplates = fn => {
45 onReloadTemplates.listeners.push(fn)
46 return () => {
47 onReloadTemplates.listeners = onReloadTemplates.listeners.filter(
48 d => d !== fn
49 )
50 }
51}
52onReloadTemplates.listeners = []
53
54export const registerTemplates = async (tmps, notFoundKey) => {

Callers 1

Routes.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…