styled-components/babel-plugin-styled-components

Setting shouldForwardProp using withConfig breaks SSR componentId

ithinkdancan opened this issue · 0 comments

I noticed that when i try and use the shouldforwardprop method added in styled-components 5.1 it prevents this plugin from being able to add the componentId and displayName which is causing hydration errors when doing SSR. Is there way to merge the configs rather than just skipping over components using withConfig?

https://styled-components.com/docs/api#shouldforwardprop