@samitouri / QOS-React-2 / commits / a2ba90bf96

Fixed a path selection bug when filter pereferences are updated

Brian Vaughn committed Apr 30, 2019 at 10:04 UTC a2ba90bf96b387fd5b3147fdecf5231b9f726c26
1 file changed +1 -1
src/backend/renderer.js
+1 -1
@@ -295,6 +295,7 @@ export function attach(
295 // Recursively re-mount all roots with new filter criteria applied.
296 hook.getFiberRoots(rendererID).forEach(root => {
297 currentRootID = getFiberID(getPrimaryFiber(root.current));
298 + setRootPseudoKey(currentRootID, root.current);
299 mountFiberRecursively(root.current, null);
300 flushPendingEvents(root);
301 currentRootID = -1;
@@ -2224,7 +2225,6 @@ export function attach(
2225 rootPseudoKeys.delete(id);
2226 }
2227
2227 - // TODO (profiling) This breaks after filter preferences have been updated.
2228 function getPathFrame(fiber: Fiber): PathFrame {
2229 let { displayName, key } = getDataForFiber(fiber);
2230 const index = fiber.index;