direflow icon indicating copy to clipboard operation
direflow copied to clipboard

Multiple instances of styled-components causes crash

Open SimonHoiberg opened this issue 4 years ago • 3 comments

Describe the bug Using Direflow Components with styled-components in a host application with styled-components causes unexpected clash due to multiple instances of styled-components. Styled Components has elaborated on this issue here and here.

The issue occurs without a clear consistency since using Direflow Components with styled-components in a host application with styled-components usually works without any problems.

To Reproduce Steps to reproduce the behavior:

  1. Create a new Direflow Setup using styled-components.
  2. Build and use it in a React application that also uses styled-components.
  3. Most likely, no problem will occur, however, introducing re-renderings in the host application that includes the Direflow Components in each render is likely to provoke the problem.

Expected behavior Direflow Component renders normally in each rerender.

Package Manager: Examined using both yarn and npm.

Screenshots

SimonHoiberg avatar Jan 06 '20 20:01 SimonHoiberg

Fixed in version 3.4.5

SimonHoiberg avatar Mar 22 '20 14:03 SimonHoiberg

This is still an issue.

SimonHoiberg avatar Apr 08 '20 17:04 SimonHoiberg

@SimonHoiberg any updates? Thanks in advance!

derzierau avatar Feb 17 '22 09:02 derzierau