funcool / lentes

Functional references for Clojure and ClojureScript
https://cljdoc.org/d/funcool/lentes/CURRENT
BSD 2-Clause "Simplified" License
94 stars 10 forks source link

Fix/mutable state bug #11

Closed blak3mill3r closed 1 month ago

blak3mill3r commented 6 years ago

First, thank you for this library! I'm finding it useful.

There is a (very) subtle shared-state bug with the mutable cache fields which I fixed here

I don't have time to do this properly right now, though I would be happy to do so at some point... I didn't update the tests or even make sure that my changes were entirely necessary, but they do fix a nasty and subtle flaw which we ran into today using this library.

niwinz commented 6 years ago

First of all, thanks for your time.

About the issue, after looking many times the code i don't see any relevant difference with the previous code:

Can you explain please which bug is fixing this, because i don't understad that is intend to solve. Maybe you first need write a test case that reproduces the bug?

blak3mill3r commented 6 years ago

Yes, I'll be glad to put together a test case that shows the problem, but I will not be able to get to it right away.

epeters-jrmngndr commented 3 years ago

@blak3mill3r I think you forgot about this

aiba commented 1 month ago

Closing this issue until someone can provide a reproducible test case or a coherent explanation of the problem.