apollo-link-state
apollo-link-state copied to clipboard
State link and subscriptions?
Hey, any chance this link will work with subscriptions? Current use case: I would like to make a subscription that will receive the currently discovered bluetooth device... something like:
subscription discoveredDevice {
bluetoothDevice @client {
name
}
}
then I would publish the device via pubSub from a local bluetooth manager to that client subscription.
Any plans for something like that in the future?
I asked the same thing yesterday and found out that subscriptions were not necessary for my case: https://github.com/apollographql/apollo-link-state/issues/137
@blissi thanks for the tip, didn't thought of that... and it works very well.
So this issue can be closed
You're welcome. Just one question: Do you also experience the same issue as I do => https://github.com/apollographql/apollo-link-state/issues/139 ?
Hey @blissi! Subscriptions are not supported yet, but we're looking to implement them soon. Right now, most browser / React Native device APIs allow you to register a callback to an event listener where you can trigger a mutation. This should cover most use cases for now until we add support for subscriptions.
@blissi did you manage to find a solution for #139?
@snajahi I haven't tried it any further and removed apollo link state from my project.
@peggyrayzis Hey, any update for this issue now?
@peggyrayzis bump. Any news on this? What is the state of things now?
Subscriptions for this would be amazing. Light-years away from Redux or Mobx.