-
-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement]: Warning on re-registering subs / events (ie name collision detection) improvements #769
Comments
It looks like I can do #2 with set-loggers! For anyone using shadow the key for both is to call set-loggers from a preload in dev.
|
I was also able to #3 with set-loggers!. For anyone using shadow the key for both is to call set-loggers! from a preload.
|
Regarding point 1, re-frame will warn about duplicates on the initial loading of code (up to the window "load" event) but after that, no warnings are issued (during hot code reloading). See #204 |
I had a guess that might be the case |
2. Setting to make the message a full error. We don't have any use cases for re adding subs, so an error is more apt.3. A flag to fail during compilation would also be a great safety net. Basically, we would want it to fail in the ci deployment when we run tests, or build the ubar jar. Maybe a function that can check for duplicates, or any other warnings, that I can add to the test suite.The text was updated successfully, but these errors were encountered: