Skip to content

LineDecorationAttachment: revert to using unsafe react methods

Warren Gifford requested to merge fix-decorations-display into master

Created by: lguychard

Fixes #5236 (closed)

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