Better pagination behavior on filter change.
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
(re-frame/reg-event-fx
|
||||
::mounted
|
||||
(fn [{:keys [db]} _]
|
||||
(println "MOUNTING")
|
||||
{::track/register [{:id ::params
|
||||
:subscription [::data-page/params :invoices]
|
||||
:event-fn (fn [params]
|
||||
@@ -195,7 +196,7 @@
|
||||
(defn unpaid-invoices-page [params]
|
||||
(r/create-class
|
||||
{:display-name "invoices-page"
|
||||
:component-will-unmount #(re-frame/dispatch [::unmounted])
|
||||
:component-will-unmount #(re-frame/dispatch-sync [::unmounted])
|
||||
:component-did-mount #(re-frame/dispatch [::mounted])
|
||||
:reagent-render
|
||||
(fn []
|
||||
|
||||
Reference in New Issue
Block a user