-
Notifications
You must be signed in to change notification settings - Fork 45
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
Pull queries do not update if their nested entities change #26
Comments
So, I'm really not familiar enough with Posh's internals to fix this. I thought I saw somewhere that Posh might bring back manual specification of listen patterns? At least then I could work around this bug. |
Temporary workaround. I found if you explicitly expand isComponent pull patterns the pull analyze picks up the changes. So, in the example above, you'd have to do something like this: (pull conn '[:db/id, :user/username, {:user/contact [:db/id, :contact/email, :contact/phone]}] 2) |
Yes; it should certainly be looking at isComponent attributes. I'm flagging as bug. Thanks for reporting. |
@seantempesta was that all you had to do? I've tried the explicit expansion, still no joy for my reactions |
@eoliphan: It worked for my scenario at that time. No idea if it's working now as I'm no longer using Posh. |
@seantempesta ok, thanks. Yeah, i'm looking at alternatives as well, I really wanted to use DS as I've got Datomic on the server, but probably will just go with specter and maps, etc. for now until I can maybe look at figuring out the posh code and doing some hacking. |
Hello guys! I've got the same issue with nested components. Are there some ways to solve this issue? I can try to help with it if someone has an idea how to fix this bug. |
Ran into this bug today. I had a
(pull conn '[*] eid)
that wasn't updating when a nested entity within that pull changed. I'm guessing it's because the datom match pattern is just for the specified eid (and not all returned entities)?Anyway, I setup an example showing the bug here:
https://github.com/seantempesta/posh-bug
The jist of it is this:
The text was updated successfully, but these errors were encountered: