       (i18n/set-default-locale!))))
 
 (def logout
-  (reify
+  (ptk/reify ::logout
     ptk/WatchEvent
     (watch [_ state s]
       (rx/of (rt/nav :auth/login)

  [data on-error]
  (s/assert ::register-params data)
  (s/assert ::us/fn on-error)
  (reify
    ptk/WatchEvent
    (watch [_ state stream]
      (letfn [(handle-error [{payload :payload}]

;; --- Logout

(def clear-user-data
  (ptk/reify ::clear-user-data
    ptk/UpdateEvent
    (update [_ state]
      (merge state (dissoc initial-state :route :router)))
