Subscriptions are a bit messy to begin with, and after fighting with React for the day I've realized that leaving it up to the client whether they'd like to subscribe or poll is the best way to go. We provide a manual way for the client to refresh state and we leave it at that.
This approach is much cleaner code wise and resolved all dynamic data problems in our react app
Subscriptions are a bit messy to begin with, and after fighting with React for the day I've realized that leaving it up to the client whether they'd like to subscribe or poll is the best way to go. We provide a manual way for the client to refresh state and we leave it at that.
This approach is much cleaner code wise and resolved all dynamic data problems in our react app