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

Rewrite a reactive property which has $on event throw error #83

Open
muzichen opened this issue Jul 26, 2023 · 0 comments
Open

Rewrite a reactive property which has $on event throw error #83

muzichen opened this issue Jul 26, 2023 · 0 comments

Comments

@muzichen
Copy link

import { reactive } from "@arrow-js/core";

const data1 = reactive({
  a: 123
});

const data2 = reactive({
  b: 123
});

data2.$on('b', (value) => {
  console.log(value);
})

data1.b = data2;
data1.b = 123;

Above code throw TypeError: Reflect.get called on non-object error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant