Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dynamic var for warning on handler overwrite
When figwheel reloads code, it causes handlers to be re-registered which leads to a warning for each handler. This leads to noisy logs. Figwheel has a :before-jsload key which can be called before it reloads application code. This patch adds a *warn-on-overwrite* dynamic var, and shows how to use it in the example project. One side effect of using this is that you will never get a warning for duplicate handlers when Figwheel is reloading. It may be possible to track how many handlers were reloaded in a particular Figwheel reload, but this would get very complex. In any case, you will still get warnings every time you refresh the browser, which should be good enough for the relatively rare case of creating duplicate handlers. Fixes #204
- Loading branch information