Skip to content

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

@Shana-AE

Description

@Shana-AE

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions