From d0caf7e48b12e9a11185eb86e0a17017c9a3287c Mon Sep 17 00:00:00 2001 From: Martin Bigio Date: Thu, 17 Mar 2016 15:05:55 -0700 Subject: [PATCH] Fix HMR variable namings Reviewed By: sam-swarr Differential Revision: D3065862 fb-gh-sync-id: b7be3187bbc5d659e863d19071cb6d13a7d8199d shipit-source-id: b7be3187bbc5d659e863d19071cb6d13a7d8199d --- local-cli/server/util/attachHMRServer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/local-cli/server/util/attachHMRServer.js b/local-cli/server/util/attachHMRServer.js index fcbd41ab9..2e0051d4b 100644 --- a/local-cli/server/util/attachHMRServer.js +++ b/local-cli/server/util/attachHMRServer.js @@ -179,10 +179,10 @@ function attachHMRServer({httpServer, path, packagerServer}) { // dependencies we used to have with the one we now have return getDependencies(client.platform, client.bundleEntry) .then(({ - depsCache, - depsModulesCache, - shallowDeps, - inverseDepsCache, + dependenciesCache: depsCache, + dependenciesModulesCache: depsModulesCache, + shallowDependencies: shallowDeps, + inverseDependenciesCache: inverseDepsCache, resolutionResponse, }) => { if (!client) { @@ -192,7 +192,7 @@ function attachHMRServer({httpServer, path, packagerServer}) { // build list of modules for which we'll send HMR updates const modulesToUpdate = [packagerServer.getModuleForPath(filename)]; Object.keys(depsModulesCache).forEach(module => { - if (!client.depsModulesCache[module]) { + if (!client.dependenciesModulesCache[module]) { modulesToUpdate.push(depsModulesCache[module]); } });