Add debugging instructions if re-frame-trace fails to start
This commit is contained in:
parent
631fa68448
commit
70cefc4022
|
@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This change
|
|||
|
||||
## Unreleased
|
||||
|
||||
### Added
|
||||
|
||||
* Debugging instructions if re-frame-trace fails to start.
|
||||
|
||||
### Changed
|
||||
|
||||
* The version of Garden that re-frame-trace uses is now bundled as a source dependency so you should no longer get conflicts.
|
||||
|
|
|
@ -143,6 +143,12 @@ If you are using leiningen, modify `project.clj` in the following ways. When puz
|
|||
* Try a `lein clean`
|
||||
* Make sure you have followed all the installation steps.
|
||||
|
||||
### If re-frame-trace throws an exception on startup
|
||||
|
||||
* Reset the settings to factory defaults in the settings panel
|
||||
* If you can't load the settings panel, run `day8.re_frame.trace.factory_reset_BANG_()` in the JavaScript console.
|
||||
* If neither of those work, remove all of the keys with the prefix `day8.re-frame.trace` from your browser's Local Storage.
|
||||
|
||||
## How does it work?
|
||||
|
||||
re-frame is instrumented - all important activity generates trace data. `re-frame-trace` consumes this trace data and renders useful visualisations of the `re-frame` process. Currently, re-frame's tracing capabilities are in alpha and are subject to change at any time. We're testing the utility of the the trace by building an app on top.
|
||||
|
|
|
@ -238,3 +238,6 @@
|
|||
|
||||
(defn init-db! []
|
||||
(trace.db/init-db))
|
||||
|
||||
(defn ^:export factory-reset! []
|
||||
(rf/dispatch [:settings/factory-reset]))
|
||||
|
|
Loading…
Reference in New Issue