-
Notifications
You must be signed in to change notification settings - Fork 649
Closed
Description
I'm getting this error:
findDOMNode is deprecated in StrictMode
animation is working well. here is my code:
<CSSTransition in={ showDeleteModal } classNames="delete-modal" timeout={ 300 } unmountOnExit>
<DeleteModal product={ deleteProduct } deleteFunc={ removeProduct } closeFunc={ closeDeleteModal }/>
I also tried this solution mentioned on #668 suggested by @pixel-fixer
<CSSTransition nodeRef={nodeRef} in={ showDeleteModal } classNames="delete-modal" timeout={ 300 } unmountOnExit>
<div ref={nodeRef}>
<DeleteModal product={ deleteProduct } deleteFunc={ removeProduct } closeFunc={ closeDeleteModal } />
</div>
</CSSTransition>
It removes the error but also disables animation.
avet-m
Metadata
Metadata
Assignees
Labels
No labels