This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-28
Channels
- # ai (1)
- # beginners (190)
- # boot (24)
- # cider (43)
- # cljsjs (3)
- # cljsrn (29)
- # clojars (6)
- # clojure (310)
- # clojure-dev (6)
- # clojure-nl (6)
- # clojure-russia (11)
- # clojure-spec (66)
- # clojure-uk (95)
- # clojurescript (103)
- # clojurewerkz (2)
- # core-async (9)
- # cursive (4)
- # datomic (5)
- # hoplon (163)
- # lein-figwheel (52)
- # off-topic (6)
- # om (6)
- # onyx (42)
- # perun (8)
- # re-frame (16)
- # reagent (10)
- # ring (7)
- # ring-swagger (1)
- # rum (1)
- # slack-help (2)
- # uncomplicate (1)
- # untangled (80)
My reagent application works fine in firefox; in Chrome I get a "Error rendering component (in wC)" and the reagent piece never mounts. Anyone seen this problem?
@puzzler advanced compilation? Do you have other JS loaded on that page?
@puzzler also can you provide any more details on the error itself?
@martinklepsch Looks like the source of error was that Firefox and Chrome handled the js/Blob constructor slightly differently, which was somewhere on the page. I'm still trying to get a handle on how to debug reagent-based applications when there can be so little feedback (like a page simply not loading) when something goes wrong. But I think I've figured out this particular problem. Thanks for offering to help.
Has anyone had any luck recovering from exceptions in reagent render fns?
In my experience, after an exception occurred (e.g. (assert false)
in any reagent component), each subsequent render will fail
The only way to recover is to reload the page, which interrupts my reloading workflow
I found this: https://github.com/reagent-project/reagent/blob/b65afde4d7ac4864d7e355acdc16977cb92afa3c/src/reagent/impl/component.cljs#L112 but it only logs out the exception, but doesn't do anything about it
oh, there is https://github.com/reagent-project/reagent/issues/272 now I see
Here's my attempt at gracefully handling exceptions: https://gist.github.com/pesterhazy/d163a8b3f1f1c6a0dac235858776c14b