Skip to content

Commit

Permalink
fixed bad assert causing async bug
Browse files Browse the repository at this point in the history
Took 9 minutes
  • Loading branch information
awkay committed Nov 17, 2017
1 parent 997a1f2 commit cc83860
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
1.1.1
-----
- Fixed assert/async bug

1.1.0
-----
- Added support for shadow DOM (for browsers that support it)
Expand Down
1 change: 0 additions & 1 deletion project.clj
Expand Up @@ -98,7 +98,6 @@
:compiler {:main fulcro-devguide.guide
:asset-path "js"
:optimizations :advanced
:elide-asserts false ; IMPORTANT: core.async 0.3.443 seems to have a bug when you elide asserts
:devcards true
:output-to "docs/js/guide.js"
:output-dir "docs/js"
Expand Down
2 changes: 1 addition & 1 deletion src/main/fulcro/client/impl/om_plumbing.cljc
Expand Up @@ -78,7 +78,7 @@
(loop [entry (async/poll! queue) entries []]
(cond
entry (recur (async/poll! queue) (conj entries (resolve-tempids entry tempid-map)))
(seq entries) (doseq [e entries] (assert (async/offer! queue e) "Queue should not block.")))))
(seq entries) (doseq [e entries] (when-not (async/offer! queue e) (log/error "Offer failed to enqueue a value."))))))

(defn remove-loads-and-fallbacks
"Removes all fulcro/load and tx/fallback mutations from the query"
Expand Down

0 comments on commit cc83860

Please sign in to comment.