By default, the Sync module sends all resources to all clients. Users can limit this or change the representation sent to clients for each resource using the to
transformation function. This module alters the default behaviour to only send resources and updates to clients for resources that they are using to eliminate over-fetching. You can still use the to
hook to add extra business logic on top of this.
This works with both the declarative usage:
<twitter-feed data="tweets" css="styles.css">
// you will be sent twitter-feed, tweets, and styles.css
And the imperative usage:
ripple('object') // will eventually resolve to value from server
- Explore subresource tracking
- Explore untracking