You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Visualize [re-frame](https://github.com/Day8/re-frame) pattern data or [reagent](https://reagent-project.github.io) ratom data as a tree structure, watch re-frame events and export state.
4
4
5
-
<imgsrc="img/re-frisk-debugger.gif">
5
+
<imgsrc="img/re-frisk.png">
6
6
7
-
## Changes
7
+
## Support re-frisk
8
8
9
-
### 0.4.5
10
-
- Implemented app-db-sorted
9
+
If re-frisk makes your work with re-frame applications easier and you like it please take a moment and support it:
11
10
12
-
### 0.4.4
13
-
14
-
- Remote debugger for react native and electron
15
-
- app-db cljs live filter
16
-
- сompatibility with previous versions of re-frame
11
+
💎BTC: 3K37vEEyBsKSat2rS74CXUA3LnVR9QPztD
17
12
13
+
💎ETH: 0x612E124d922a6DE46953226965C8e773166891E9
18
14
19
15
## Usage
20
16
21
-
### Web applications with re-frame
17
+
### Web application
22
18
23
19
In-app re-frisk debugger. The debugger will be embedded into the interface of your application.
You can provide starting position for the re-frisk panel
142
-
143
-
```clojure
144
-
(enable-re-frisk! {:x100:y500})
145
-
146
-
(enable-frisk! {:x100:y500})
147
-
```
148
-
149
-
also, it will be helpful for the IE, because it doesn't support resize property, you can provide width and height
150
-
151
-
```clojure
152
-
(enable-re-frisk! {:width"400px":height"400px"})
153
-
154
-
(enable-frisk! {:width"400px":height"400px"})
155
-
```
156
152
157
153
### reagent
158
154
If you are not using re-frame in your app, you can run re-frisk without re-frame by `enable-frisk!` function
159
155
160
-
```clojure
156
+
```cljs
161
157
(enable-frisk!)
162
158
```
163
159
164
160
If you want to watch ratom or log any data, you can add it using `add-data` or `add-in-data` functions
165
161
166
-
```clojure
162
+
```cljs
167
163
(add-data:data-key your-data)
168
164
169
165
(add-in-data [:data-key1:data-key2] your-data)
170
166
```
171
167
172
-
## Advanced thing
173
-
174
-
For me, it's very handy to name events with the appropriate suffix, for example for reg-event-db :event-key-db, and for reg-event-fx :event-key-fx, in that case re-frisk automatically highlight these events
175
-
176
-
Also you can watch all re-frame views which are rendering now
177
-
178
-
Add `:external-config {:re-frisk {:enabled true}}}}` to the dev `:compiler` in your project.clj if you are working with the re-frame app
179
-
180
-
<imgsrc="img/re-frisk-project.png">
181
-
182
-
this config needed to do not generate any code in production.
Works weird in the Internet Explorer which doesn't support css resize property.
207
177
Debugger doesn't work in IE.
208
178
209
-
If you are using `reagent.core/create-class` function for creating views, data for these views will be still showing in the re-frisk after this components will be unmounted.
0 commit comments