Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when comparing PartialFn to nil #385

Closed
khardenstine opened this issue Jul 13, 2018 · 0 comments
Closed

Exception when comparing PartialFn to nil #385

khardenstine opened this issue Jul 13, 2018 · 0 comments

Comments

@khardenstine
Copy link
Contributor

(= (r/partial identity 1) nil)
=> util.cljs:117 Uncaught TypeError: Cannot read property 'f' of null
    at reagent.impl.util.PartialFn.cljs$core$IEquiv$_equiv$arity$2 (util.cljs:117)
    at Object.cljs$core$_equiv [as _equiv] (core.cljs:695)
    at Function.cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2 (core.cljs:1257)
    at cljs$core$_EQ_ (core.cljs:1247)

This should just return false.

Using v0.7.x, but its definitely an issue on HEAD too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant