Skip to content

Page crashes due to excessive single line text #65

Open
@HammerTWang

Description

@HammerTWang

The following two text files are examples:
string-1.txt
string-2.txt

  <ReactDiffViewer
    styles={{ contentText: { wordBreak: 'break-all' } }}
    oldValue={sourceValue || ''}
    newValue={targetValue || ''}
    showDiffOnly
    splitView
  />

After adding disableWordDiff, it can run normally. Is there a better solution

  <ReactDiffViewer
    styles={{ contentText: { wordBreak: 'break-all' } }}
    oldValue={sourceValue || ''}
    newValue={targetValue || ''}
    showDiffOnly
    splitView
    disableWordDiff
  />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions