diff --git a/src/status_im/contexts/profile/contact/contact_request/view.cljs b/src/status_im/contexts/profile/contact/contact_request/view.cljs index 07c8d9faa3..c9f9c0cdc4 100644 --- a/src/status_im/contexts/profile/contact/contact_request/view.cljs +++ b/src/status_im/contexts/profile/contact/contact_request/view.cljs @@ -76,12 +76,15 @@ (defn make-state-handler-factory [state-ref] (let [storage (rn/use-memo #(atom {}) [state-ref]) - factory (rn/use-callback - (memo storage - (fn [callback] - (print "make state handler") - (fn [event] - (callback @state-ref event)))) + factory (rn/use-memo + (fn [] + (fn [handler] + ((memo storage + (fn [callback] + (print "make state handler") + (fn [event] + (callback @state-ref event)))) + handler))) [state-ref storage])] {:factory factory :storage storage}))