I want to use react-lottie with lazy loading because I use it after doing certain operations in some parts of the project. But when deleting from the screen I get such an error. The problem goes away when I send an empty array.
Code:

Error:

Solution:

I want to use react-lottie with lazy loading because I use it after doing certain operations in some parts of the project. But when deleting from the screen I get such an error. The problem goes away when I send an empty array.
Code:

Error:

Solution:
