reagent-project / reagent

A minimalistic ClojureScript interface to React.js
http://reagent-project.github.io/
MIT License
4.76k stars 414 forks source link

Compile warning: `JSC_UNREACHABLE_CODE` #533

Closed harold closed 3 years ago

harold commented 3 years ago

First, thanks for reagent, it's nuts :peanuts: - it's the best and funnest way I've found to do frontend, and by not a small margin.

Getting a compile warning, wondering if others are seeing this or if it's an artifact of my (admittedly quite goofy) setup.

I am on 1.0.0:

$ lein deps :tree | grep reagent
[reagent "1.0.0"]

As part of my production build, this is printed:

Mar 13, 2021 2:28:13 PM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: /home/[REDACTED]/cljs-out/prod/reagent/core.js:984: WARNING - [JSC_UNREACHABLE_CODE] unreachable code
return null;
^^^^^^^^^^^^

Maybe this helps clean up some code? Regardless, thanks again for your time and consideration.