fix(runtime-core): fix unwanted warning with disabled compat flag by jleifeld · Pull Request #11126 · vuejs/core (original) (raw)
If you disable the "ATTR_FALSE_VALUE" in your compat config you expect that no warning will be thrown afterwards. But this still seems to be the case.
The warning also contains a instruction how to suppress the warning: ...suppress this warning with: configureCompat({ ATTR_FALSE_VALUE: false }). So it will be expected that using this instruction the warning should be suppressed which is not the case.
The issue reproduction can be found in the test. I hope it is the correct place 🙂
My fix switches the order and first checks, if the feature is enabled. If this is the case then it shows the warning. But with a disabled feature the warning for this feature won't be triggered anymore.