MCPcopy
hub / github.com/pqina/filepond / createRoute

Function createRoute

src/js/app/frame/createRoute.js:1–9  ·  view source on GitHub ↗
(routes, fn)

Source from the content-addressed store, hash-verified

1export const createRoute = (routes, fn) => ({ root, props, actions = [], timestamp, shouldOptimize }) => {
2 actions.filter(action => routes[action.type])
3 .forEach(action =>
4 routes[action.type]({ root, props, action: action.data, timestamp, shouldOptimize })
5 );
6 if (fn) {
7 fn({ root, props, actions, timestamp, shouldOptimize });
8 };
9};

Callers 13

dropLabel.jsFile · 0.85
item.jsFile · 0.85
listScroller.jsFile · 0.85
list.jsFile · 0.85
drip.jsFile · 0.85
browser.jsFile · 0.85
root.jsFile · 0.85
assistant.jsFile · 0.85
data.jsFile · 0.85
fileStatus.jsFile · 0.85
fileWrapper.jsFile · 0.85
fileInfo.jsFile · 0.85

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected