π¦Cluster
Initializing a Cluster:
// a ListUnit that saves user's liked things
const userLikesUnit = new ListUnit();
// a DictUnit that saves user's preferences as key:value pairs
const userPreferencesUnit = new DictUnit({initialValue: {humor: 'dark'}});
// create a Cluster to group the above Units together
const userDataCluster = new Cluster({
userLikesUnit, // using shorthand notation
userPreferencesUnit
});Accessing the value:
Accessing the members through Cluster:
Value propagation:
Notes
Configuration Options
Last updated
Was this helpful?