Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix circular dependency in
wpcom-xhr-wrapper
(#42785)
`lib/wpcom-xhr-wrapper` was introducing a circular dependency through `lib/user/utils`: ``` client/lib/user/utils.js -> client/lib/user/index.js -> client/lib/user/user.js -> client/lib/user/support-user-interop.js -> client/lib/wp/browser.js -> client/lib/wpcom-xhr-wrapper/index.js -> client/lib/user/utils.js ``` Since `lib/wpcom-xhr-wrapper` is all async anyway, we can load `lib/user/utils` dynamically, and avoid the circular dependency.
- Loading branch information