which developer plugin do you use to inspect the state of the app when using reagent
?
I recommend portal! There is also this thing: https://github.com/Odinodin/data-frisk-reagent
the react
one?
also, when I insert a keyword in some javascript state, it's silently converted to a js object. So code like (= :my-keyword state)
where state is originally a keyword (but now a string) will fail
that doesn't sound right, I think. You have a fuller example of this?
what's the usual way of going around that?
If you are using shadow-cljs, I think you can use its inspect + tap>
If not, you can always use https://github.com/djblue/portal to inspect your reagent state (shameless plug 😂)
I noticed the “Newbie Friendly Tickets” link in the Clojurescript github wiki (https://github.com/clojure/clojurescript/wiki/Developers) is a dead link to the old Clojure Jira. Is there a revised link for the new Jira? (Well, “dead” = 403 forbidden).
presuming that was a filter, I don't know that it was recreated in the new jira system
probably could do though
yeah, looked like some sort of view: http://dev.clojure.org/jira/secure/IssueNavigator.jspa?mode=hide&requestId=10616
here's a replacement: https://clojure.atlassian.net/issues/?filter=10028
if you get to the point of wanting to supply patches, please see https://clojure.org/dev/dev for process to sign the CA and request a jira account, and discuss any issues in #cljs-dev
and I updated the wiki page link
I'm getting the following error message when I try to call a function from emacs/cider debug Buffer (window).
#object[Error Error: No protocol method IDeref.-deref defined for type null: ]
The code works when I call it from the webpage.
the cider debugger says that it is a function.
ttncore.copy> (st/fetch-block "xx" :LINK)
#object[Error Error: No protocol method IDeref.-deref defined for type null: ]
ttncore.copy> (type st/fetch-block)
#object[Function]
somewhere you're dereferencing nil instead of an atom it seems
Good to know. I've been able to fix my problem with your help. I did look at the stack trace in the browser but didn't help. Thanks again for your help. My programming error.
@nill
or (deref nil)
Yes, it seems like it should be something obvious like that. Hard to isolate failure though since it doesn't indicate where in the code or what atom is being dereferenced. thanks for the suggestion.
what's the full stacktrace? place it here in this thread using triple backticks: `
triple backticks
allow multiple
lines