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

call push will hang #25

Open
meihuanyu opened this issue Mar 22, 2022 · 2 comments
Open

call push will hang #25

meihuanyu opened this issue Mar 22, 2022 · 2 comments

Comments

@meihuanyu
Copy link

const map = doc.getMap("root");
const state = proxy({ list: [ { fn: console.log } ] });
bindProxyAndYMap(state, map);

state.push(1)

set value function will hang, set other type is fine

@dai-shi
Copy link
Member

dai-shi commented Mar 22, 2022

For now, it only supports serializable values.
Doesn't it show unsupported p type warning?
There might be a better way to handle non-serializable values, maybe with some limitations. (anyone interested?)

@meihuanyu
Copy link
Author

Thank you for your reply。
warning is work.

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

2 participants