Closed nicolas6422 closed 1 year ago
Hi, I think I can help but this doesn't look strictly related to this package, could you please post your question on Stack Overflow and link it here? That would help future Googlers as much as yourself, so other engineers could see the question and provide alternative solutions as well.
@luisanton-io is there a reason this isn't part of the package? It seems like a reasonable utility that covers common use cases.
I'm going to try implementing it myself as part of a forked package, but it would be good to see the way you were thinking it should work.
I haven't been able to figure out a solution yet mostly because I can't find a function that takes a callback and also subscribes. As in, useRecoilCallback
is a once off, it's not a subscription.
I've posted a question on SO: https://stackoverflow.com/questions/76634495/react-recoil-outside-of-react-component-observable-subscriptions
HI @CyberCyclone, I replied to your question.
Say I want to setup an observer outside of the react render tree like
Would this be possible? Figured you'd be the best person to ask 😄