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

another caching bug #47

Open
jleonard-r7 opened this issue May 18, 2022 · 2 comments
Open

another caching bug #47

jleonard-r7 opened this issue May 18, 2022 · 2 comments

Comments

@jleonard-r7
Copy link

  ;; this is bugged. apparently results are cached.
  #_(rp/reg-query-sub
   ::entity-id-by-attribute-value
   '[:find ?e . :in $ ?a ?v :where [?e ?a ?v]])

  (rf/reg-sub
   ::entity-id-by-attribute-value
   (fn [_ [_ attr val]]
     (d/q '[:find ?e . :in $ ?a ?v :where [?e ?a ?v]] @connection attr val)))

First one does not return a different value if entities are retracted and re-added. Latter one does.

@jleonard-r7
Copy link
Author

May be related to: #41

@denistakeda
Copy link
Owner

Hello @jleonard-r7 . Thank you for reporting this issue, I would really love to fix it, but just don't have enough time for that so far. If you like to figure out it by yourselves, there are some suggestions. re-posh is a simple adapter, which connects posh and re-frame framework. I think it's really unlikely that this caching bugs belong to re-posh and most likely they are somewhere inside posh. The author of posh is not maintained it anymore, so I decided to do it myself, but as I said recently didn't have much time.
I suggest you trying to reproduce these caching bug using just a pure posh (the changes should be minimal actually) and then dig into this library

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

2 participants