Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent false positive
history.pushState
warnings (#11858)
fixes #11671 The warning currently incorrectly fires when we use history.pushState() internally such as clicking on a link. You can test this in a stackblitz starter project. This is because one of the early exit conditions in the warning method is failing incorrectly. import.meta.url returns the client.js file with a query parameter when loading it from node_modules. This causes the substring search for the module filename in the error stack to always return false (because of the query params that are not present in the error stack) The solution is to simply return the URL without the query parameters if any.
- Loading branch information