We were incorrectly calculating the dependencies of nested lambdas, because the "component" scope was incorrectly set to the next closest parent rather than outermost React function (component/hook) being compiled.