mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user