Skip to content

LineDecorationAttachment: revert to using unsafe react methods

Administrator requested to merge fix-decorations-display into master

Created by: lguychard

Fixes #5236

The changes introduced to comply with react/no-unsafe in https://github.com/sourcegraph/sourcegraph/pull/5072 broke the initial display of after-line decorations. This reverts to using UNSAFE_componentWillMount() and UNSAFE_componentWillReceiveProps(), with an explanatory comment.

Merge request reports

Loading