Better pagination behavior on filter change.

This commit is contained in:
Bryce Covert
2020-08-18 07:24:53 -07:00
parent 441077169f
commit 0c93e84cd2
5 changed files with 19 additions and 7 deletions

View File

@@ -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 []