Closed robhogan closed 11 months ago
This pull request was exported from Phabricator. Differential Revision: D52457312
This pull request was exported from Phabricator. Differential Revision: D52457312
This pull request was exported from Phabricator. Differential Revision: D52457312
This pull request has been merged in facebook/metro@698b13e8788017d7384132b10a4381c7582d7f02.
Summary: Currently, if Metro encounters an error resolving a dependency or transforming a module that is present in the graph at the time the error is introduced, it will return the error to the client and continue to do so, even after the bad dependency is subsequently made unreachable by another change.
This is "fixed" by a full refresh or Metro restart, because a new traversal would not encounter the error, and is therefore a correctness bug.
This diff fixes the bug by:
buildSubgraph
(prior to any state modification).Changelog:
Reviewed By: motiz88
Differential Revision: D52457312