Skip to content
Discussion options

You must be logged in to vote

Hey @larryatkin,

Thanks for taking the time to dig into the problem and propose a solution. This seems to be a tricky situation, so let me start with some context:

I'm not sure why the closure form of the func scope is deprecated. I have not been able to create a keyPath that works in this scenario. Can anyone offer suggestions?

Early versions of TCA did not have stable store identity: every time you scoped a store it would create a brand new object and set up a subscription with the parent store to synchronize. Over time, TCA evolved to keep child stores around in the parent, but we needed a stable, hashable way of identifying a store. Closures are not hashable and so we cannot compute…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@larryatkin
Comment options

Answer selected by larryatkin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants