Skip to content

Object mutation #2

Closed
Closed
@miljan-aleksic

Description

@miljan-aleksic

Hi @alexsasharegan,

in my local tests I am getting this strange behavior where the passed in objects are being mutated.
Example

const def = {on: { event }}
const def2 = {on: { event2 }}

const data = dataMerge(data, def, def2)

console.log(def) // { on: [event, event2] }

Before making some deeper tests and solutions I wanted to expose this issue and see if there is any reason behind.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions