cljs-oops
cljs-oops copied to clipboard
ClojureScript macros for convenient native Javascript object access.
Right now there doesn't seem to be any docs on how to use ocall...and I can't seem to figure it out by trial and error myself. I'm trying to translate:...
```clojure => (oget #js {:constructor nil, :a 1} :a) TypeError: Cannot read properties of null (reading 'prototype') at Object.oops$helpers$is_prototype_QMARK_ [as is_prototype_QMARK_] (helpers.cljs:7) at Object.oops$helpers$cljs_type_QMARK_ [as cljs_type_QMARK_] (helpers.cljs:19) at Object.oops$core$validate_object_access_dynamically [as...
Hello, I'm trying to use oops to interop with [Automerge](https://github.com/automerge/automerge). This snippet fails to make an update: ```clojure (oset+ doc "todos" (str idx) "done" true) ``` The browser complaints that:...
I've had to stop using cljs-oops for a subset of my uses, specifically https://capacitorjs.com plugins[1], because their top-level plugin modules return a Proxy that behaves somewhat like this (not exactly,...
So this is a bit of a weird onc since there's hardly anyone (possibly just me?) is using prepl for development right now, if you don't care just yet then...