        (fn
          [& {:keys [showing? position anchor popover style] :as args}]
          {:pre [(validate-args-macro popover-anchor-wrapper-args-desc args "popover-anchor-wrapper")]}
-         @reset-on-hide ;; TODO: Need to dereference this reaction, otherwise it will never update (probably a better way to do this)
+
+         @reset-on-hide ;; Dereference this reaction, otherwise it won't be set up. The reaction is set to run whenever the popover closes
          (when (not= @external-position position) ;; Has position changed externally?
            (reset! external-position position)
            (reset! internal-position @external-position))

             :or {arrow-length 11 arrow-width 22 arrow-gap -1}
             :as args}]
         {:pre [(validate-args-macro popover-content-wrapper-args-desc args "popover-content-wrapper")]}
         [:div
          {:class "popover-content-wrapper"
           :style (merge (flex-child-style "inherit")

      :or {arrow-length 11 arrow-width 22 arrow-gap -1}
      :as args}]
  {:pre [(validate-args-macro popover-content-wrapper-args-desc args "popover-content-wrapper")]}
  (let [left-offset              (reagent/atom 0)
        top-offset               (reagent/atom 0)
        position-no-clip-popover (fn position-no-clip-popover
