MCPcopy
hub / github.com/dvajs/dva / get

Method get

packages/dva-core/src/Plugin.js:74–84  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

72 }
73
74 get(key) {
75 const hooks = this.hooks;
76 invariant(key in hooks, `plugin.get: hook ${key} cannot be got`);
77 if (key === 'extraReducers') {
78 return getExtraReducers(hooks[key]);
79 } else if (key === 'onReducer') {
80 return getOnReducer(hooks[key]);
81 } else {
82 return hooks[key];
83 }
84 }
85}
86
87function getExtraReducers(hook) {

Callers 5

plugin.test.jsFile · 0.80
injectModelFunction · 0.80
startFunction · 0.80
createStore.jsFile · 0.80
requestFunction · 0.80

Calls 2

getExtraReducersFunction · 0.85
getOnReducerFunction · 0.85

Tested by

no test coverage detected