react Сторонний внешний скрипт удаляет элмент - ошибка при повторном рендеринге: NotFoundError: Node was not found

Ошибка типа:

NotFoundError: Node was not found......
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.

возникает если DOM элемент удаляет со страницы не реактом, а сторонней библиотекой.