MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / isDepsEqual

Function isDepsEqual

mini-react/src/mini-react.js:290–301  ·  view source on GitHub ↗
(deps, newDeps)

Source from the content-addressed store, hash-verified

288 }
289
290 function isDepsEqual(deps, newDeps) {
291 if(deps.length !== newDeps.length) {
292 return false;
293 }
294
295 for(let i = 0; i < deps.length; i++) {
296 if(deps[i] !== newDeps[i]) {
297 return false;
298 }
299 }
300 return true;
301 }
302
303 function commitEffectHooks() {
304 function runCleanup(fiber){

Callers 2

runCleanupFunction · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected