MCPcopy
hub / github.com/xaboy/form-create / invoke

Function invoke

packages/core/src/frame/util.js:68–75  ·  view source on GitHub ↗
(fn, def)

Source from the content-addressed store, hash-verified

66}
67
68export function invoke(fn, def) {
69 try {
70 def = fn()
71 } catch (e) {
72 logError(e);
73 }
74 return def;
75}
76
77export function makeSlotBag() {
78 const slotBag = {};

Callers 15

submitFunction · 0.90
submitFunction · 0.90
loadPendingFunction · 0.90
createFunction · 0.90
callbackFunction · 0.90
targetFormDriverFunction · 0.90
globalLanguageDriverFunction · 0.90
runFunction · 0.90
unmountFunction · 0.90
installFunction · 0.90
resetFieldsFunction · 0.90
execFunction · 0.90

Calls 2

logErrorFunction · 0.90
fnFunction · 0.70

Tested by

no test coverage detected