Skip to content

Commit

Permalink
Fix bug for evicting atoms from watch registry
Browse files Browse the repository at this point in the history
  • Loading branch information
djblue committed Apr 16, 2023
1 parent 709d719 commit 3ac9d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/portal/runtime.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
(let [value (id->value id)
{:keys [session-id value-cache watch-registry]} *session*]
(when (atom? value)
(swap! watch-registry dissoc value)
(swap! watch-registry disj value)
(remove-watch value session-id))
(swap! value-cache dissoc [:id id] (value->key value))
nil))
Expand Down

0 comments on commit 3ac9d35

Please sign in to comment.