Interesting question, I have been struggling with it myself. I tried to use the undocumented ReactJS feature described on https://gist.github.com/pesterhazy/d163a8b3f1f1c6a0dac235858776c14b, but it does not seem to really work — but as I understand it from my brief research, this is an unresolved problem for everyone.
Does anybody else have a good idea? Related to this: in my fairly large Clojurescript codebase (about 200 combined CLJC/CLJS namespaces), most of the waiting time involved — 3.5 seconds on average — when changing code, is having to hit the reload button in Chrome, e.g. due to the unresolved errors messing up the state of my components. Has anybody found a solution for faster reloads? I have the impression that the Figwheel communication between Chrome and the Figwheel process takes up a fair chunk of this time, but that may also be a misunderstanding from my side. An ideal solution would allow you to perform a clean reset of the page to its initial state, without any reloading involved.. (Note that I tried changing a few of the hidden Chrome flags regarding reloading and code caching, but they do not seem to have any effect.) Maarten On Sunday, March 19, 2017 at 8:11:43 PM UTC+1, Daneel van Tonder wrote: > Hi Everyone > > I'm writing an application in re-frame (awesome framework by the way) but are > stuck on handling errors globally. > > For for the moment I need a simple way to catch unhandled errors and send > them to an endpoint in my api. > > Tried goog.debug.ErrorReporter/install but it doesn't seem to catch any of my > errors. Perhaps I've not placed it at the correct point in my code (tried my > application entry file). > > Any help would be much appreciated. > > > Cheers > Daneel -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/clojurescript.
