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

oset being strict #30

Open
wilkerlucio opened this issue Aug 15, 2021 · 0 comments
Open

oset being strict #30

wilkerlucio opened this issue Aug 15, 2021 · 0 comments

Comments

@wilkerlucio
Copy link

Hello,

I'm trying to use oops to interop with Automerge.

This snippet fails to make an update:

(oset+ doc "todos" (str idx) "done" true)

The browser complaints that: data property descriptor has writable=false

But if I try something a bit different:

(gobj/set (oget+ doc "todos" (str idx)) "done" done)

This works just fine, the google impl is a single obj[key] = value. I wonder if there is a way to make oops work directly without having to fall back into Closure helpers.

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