Allow to set tracked path multiple times

Fixes #225. This happens when you close and reopen DevTools while on the same page.
This commit is contained in:
Dan Abramov
2019-04-25 14:57:39 +01:00
parent d5319566a1
commit e1383c666d
-2
View File
@@ -2035,8 +2035,6 @@ export function attach(
trackedPathMatchFiber = null;
trackedPathMatchDepth = -1;
mightBeOnTrackedPath = false;
} else if (trackedPath !== null) {
throw new Error('Tracked path can only be set once.');
}
trackedPath = path;
}