To remember a connection, run RangeBehaviors.remember in relay.prepareVariables with a name, the connection arguments and an optional rangeBehavior operation:
prepareVariables(variables) {
var { startDate, endDate } = variables;
RangeBehaviors.remember('items', { startDate, endDate }, 'prepend'); // append if not specified
return variables;
}