QgsVectorLayer::uniqueValues() also returns uncommitted values