Merge pull request #4269 from penpot/telemetry

 Improve internal naming of setup/props
This commit is contained in:
Alejandro 2024-03-18 09:53:15 +01:00 committed by GitHub
commit 89b43d7127
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 397 additions and 293 deletions

View file

@ -7,8 +7,10 @@
(ns app.util.router
(:refer-clojure :exclude [resolve])
(:require
[app.common.data.macros :as dm]
[app.common.uri :as u]
[app.config :as cf]
[app.main.data.events :as ev]
[app.util.browser-history :as bhistory]
[app.util.dom :as dom]
[app.util.timers :as ts]
@ -59,8 +61,13 @@
(defn navigated
[match]
(ptk/reify ::navigated
IDeref
(-deref [_] match)
ev/Event
(-data [_]
(let [route (dm/get-in match [:data :name])
params (get match :path-params)]
(assoc params
::ev/name "navigate"
:route (name route))))
ptk/UpdateEvent
(update [_ state]