Skip to content

Commit

Permalink
Dispatch push-meta via to-json
Browse files Browse the repository at this point in the history
  • Loading branch information
djblue committed Nov 30, 2024
1 parent db24c7e commit e4f421f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/portal/runtime.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
(empty? value)
(cson/tagged-value? value)
(not (can-meta? value))
(has? value ::id)
(has? value :portal.rpc/id)
(::no-cache (meta value))))

Expand Down
2 changes: 1 addition & 1 deletion src/portal/runtime/cson.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@

(defn- push-meta [buffer m]
(if (map? m)
(-to-json m (json/push-string buffer "^"))
(to-json (json/push-string buffer "^") m)
buffer))

(defn- tagged-meta [buffer value]
Expand Down

0 comments on commit e4f421f

Please sign in to comment.