Commit graph

17 commits

Author SHA1 Message Date
Gered 8b21d12167 return the actual view-system atom, not just the updated atom's value 2016-05-30 19:06:11 -04:00
Gered 38dee6ee8e can just swap directly into view-data here, no need for a cursor
i think i was originally worried that swapping into view-data directly
would cause unnecessary component re-renders, but that should not ever
happen because application code should not be dereferencing view-data
directly (should always be using cursors).
2016-05-30 18:59:32 -04:00
Gered a2304f978b prevent duplicate subscriptions being sent on page load in some cases
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.
2016-05-30 15:41:42 -04:00
Gered 734edab0b8 slight adjustment to the format of view refresh messages 2016-05-30 12:28:01 -04:00
Gered 8657491a37 updates for recent views changes 2016-05-29 19:31:11 -04:00
Gered d5e421de52 allow for defvc components to include doc comments and attribute maps
just like reagent components would be able to do when defined with defn
2016-05-25 13:42:11 -04:00
Gered 20be582a1a minor nitpicky "cleanups" 2016-05-24 10:38:01 -04:00
Gered e86ab23603 add loading? fn to check if a view-cursor is waiting for initial data 2016-05-23 15:15:23 -04:00
Gered a88a24d303 add optional context-fn setting 2016-05-20 13:02:09 -04:00
Gered 2c29f7fe71 pass in context to views subscribe/unsubscribe calls 2016-05-20 12:21:30 -04:00
Gered 833054913e update how views and parameters are provided to view-cursor 2016-05-19 22:56:17 -04:00
Gered 082d78d77b sync up with changes to how view-sigs are sent in the views library now 2016-05-19 22:55:36 -04:00
Gered 3993415171 fix incorrect way of checking for the prefix portion of the event type 2016-05-19 22:02:42 -04:00
Gered 719b84daf3 in the last 1.5 years, the arg order for this function changed it seems 2016-05-19 18:09:22 -04:00
Gered 145ecc5ddb add browserchannel messaging backend library 2016-05-19 17:06:57 -04:00
Gered 86b7ec0ca2 lots of updates: new views and reagent. remove direct browserchannel dep
new "architecture" will rely on secondary "adapter" libraries that
plug in to reagent-data-views and provide the actual underlying
client/server messaging implementation (e.g. browserchannel or sente)
2016-05-19 16:24:26 -04:00
Gered 6563a3ecc4 begin reorganizing project layout 2016-05-19 13:40:57 -04:00