Allow to set tracked path multiple times
Fixes #225. This happens when you close and reopen DevTools while on the same page.
Dan Abramov committed
Apr 25, 2019 at 14:57 UTC
e1383c666da1750beb74fb048cc5e70668cf3c7b
1 file changed
-2
src/backend/renderer.js
-2
@@ -2035,8 +2035,6 @@ export function attach(
2035
trackedPathMatchFiber = null;
2036
trackedPathMatchDepth = -1;
2037
mightBeOnTrackedPath = false;
2038
- } else if (trackedPath !== null) {
2039
- throw new Error('Tracked path can only be set once.');
2038
}
2039
trackedPath = path;
2040
}