Merge branch 'not=-throwing' of https://github.com/danielcompton/reagent into danielcompton-not=-throwing

This commit is contained in:
Juho Teperi 2018-05-04 19:07:48 +03:00
commit 5c85e01847
1 changed files with 4 additions and 1 deletions

View File

@ -167,7 +167,10 @@
new-argv ($ nextprops :argv) new-argv ($ nextprops :argv)
noargv (or (nil? old-argv) (nil? new-argv))] noargv (or (nil? old-argv) (nil? new-argv))]
(cond (cond
(nil? f) (or noargv (not= old-argv new-argv)) (nil? f) (or noargv (try (not= old-argv new-argv)
(catch :default e
(warn "Exception thrown while comparing argv's in shouldComponentUpdate. You probably need to set different keys." old-argv new-argv e)
false)))
noargv (.call f c c (get-argv c) (props-argv c nextprops)) noargv (.call f c c (get-argv c) (props-argv c nextprops))
:else (.call f c c old-argv new-argv)))))) :else (.call f c c old-argv new-argv))))))