Gered
a2304f978b
reagent-data-view's reconnection handling code in on-open that was intended to make sure active components have their views resubscribed was also erroneously running on the first connection at page-load time if some components happened to render before the client/server messaging system (browserchannel/sente) connected. this caused the view-data atom's state to get set up in a way that when on-open! was called when that first connection was finally established on page load, it would look like there were existing subscriptions that had to have re-subscription messages sent as if we were processing a reconnection. we simply track whether on-open is being called for the first connection or not to handle this properly. |
||
---|---|---|
examples | ||
reagent-data-views | ||
reagent-data-views-browserchannel | ||
.gitignore | ||
LICENSE | ||
README.md |
reagent-data-views
Reagent components that can subscribe to receive realtime database updates.
This library is still in the experimental stages!
I'm hoping to have a release with documentation and examples soon. For now, tread carefully when browsing through the code in this repository!
This requires the use of my fork of the views library (which is also currently in the experimental stage).
License
Copyright © 2016 Gered King
Distributed under the the MIT License. See LICENSE for more details.