Skip to content

toRaw(attrs) is not a plain object anymore in ^3.4.22 #10794

@cloydlau

Description

@cloydlau

Vue version

^3.4.22

Link to minimal reproduction

https://github.com/cloydlau/reproduction.git

Steps to reproduce

1、pnpm i
2、pnpm dev
3、Open the browser console

What is expected?

isPlainObject(toRaw(attrs)) returns true

What is actually happening?

isPlainObject(toRaw(attrs)) returns false

System Info

No response

Any additional comments?

1、isPlainObject(toRaw(attrs)) returns true in vue@3.4.21 or earlier;
2、isPlainObject is a method from lodash-es. Given that lodash-es has not been updated for three years and is very stable, it is unlikely that the issue is with isPlainObject.

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