Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vue/compat] createApp copy singletonApp configs even set { mode:3 } to compatConfig #5699

Closed
Shana-AE opened this issue Apr 11, 2022 · 1 comment · Fixed by #5979
Closed

Comments

@Shana-AE
Copy link

Version

3.2.31

Reproduction link

github.com

Steps to reproduce

run yarn dev, see main.ts and see console output, compare two app's config.globalProperties.

I'm not very sure whether it's a bug or I used it wrong. I read a little code from createApp to applySingletonAppMutations roughly, I didn't find config to turn this behavior off.

What is expected?

{mode: 3} shouldn't copy app configs to another.

What is actually happening?

createApp copied app configs.

@snoozbuster
Copy link
Contributor

snoozbuster commented May 22, 2022

+1 on this. I have a minimal repro codesandbox as well. the two apps created with createApp share components, directives, and mixins, even on configureCompat({ MODE: 3 }) which I would expect to be 100% identical to running without the compat build at all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants