Performance issue when zooming/panning using LayeredDigraphLayout in GoJS 3.0.8

At the moment, the property is no longer used.
Before my attempts to improve performance, however, the property was used in the function that determines stroke width of the link shape:

function calculateLinkShapeStrokeWidth(data: go.ObjectData): number {
  const sanitizedScale: number = sanitizeScale(data.diagramLinkScale);
  return data.isSelected ? 8 / sanitizedScale : 2 / sanitizedScale;
}

Basically what I needed accomplish was forcing an update of the links when the zoom level is changed. For this purpose I resorted to setting the model property.
I got that idea from Problem with refresh link lines color and dashed.

This seemed to be the better approach than just calling raiseDataChanged on the model even though no real data had been changed.

Please let me know if there is a better approach for this.