File tree 2 files changed +18
-6
lines changed
2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
> The re-frame [ Clojars page] ( https://clojars.org/re-frame/ ) contains dependency coordinates for Maven/deps/Lein.
8
8
9
+ ## 1.4.4 (2024-06-24)
10
+
11
+ #### Changed
12
+
13
+ - Changed flows to calculate the new app-db earlier in the chain.
14
+ - Benefit: user-defined interceptors are aware of the post-flow app-db value.
15
+ - Drawback: they can't access the value of app-db directly resulting from the event handler.
16
+ - Drawback: they can't access flow-related effects like `:reg-flow`.
17
+
18
+ - Added a :re-frame/pre-flow-db key to the context
19
+ - This way, user-defined interceptors can still access the app-db value resulting directly from the event handler.
20
+
9
21
## 1.4.3 (2024-01-25)
10
22
11
23
#### Fixed
Original file line number Diff line number Diff line change 423
423
([id interceptors handler]
424
424
(events/register id [cofx/inject-db
425
425
fx/do-fx
426
- flow/interceptor
427
- flow/do-fx
428
426
std-interceptors/inject-global-interceptors
429
427
interceptors
428
+ flow/interceptor
429
+ flow/do-fx
430
430
(db-handler->interceptor handler)])))
431
431
432
432
(defn reg-event-fx
463
463
([id interceptors handler]
464
464
(events/register id [cofx/inject-db
465
465
fx/do-fx
466
- flow/interceptor
467
- flow/do-fx
468
466
std-interceptors/inject-global-interceptors
469
467
interceptors
468
+ flow/interceptor
469
+ flow/do-fx
470
470
(fx-handler->interceptor handler)])))
471
471
472
472
(defn reg-event-ctx
500
500
([id interceptors handler]
501
501
(events/register id [cofx/inject-db
502
502
fx/do-fx
503
- flow/interceptor
504
- flow/do-fx
505
503
std-interceptors/inject-global-interceptors
506
504
interceptors
505
+ flow/interceptor
506
+ flow/do-fx
507
507
(ctx-handler->interceptor handler)])))
508
508
509
509
(defn clear-event
You can’t perform that action at this time.
0 commit comments