You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This also has the nasty side effect of requiring a snapshot update whenever any of the styling rules on the prop being passed are changed. Would be nice if it just said Object {} instead!
Is there any way around this?
The text was updated successfully, but these errors were encountered:
jwld
changed the title
Passing react components as props results in large snapshots
Passing styled-components as props results in large snapshots
Feb 18, 2019
Just for a bit more context, I noticed this became a problem on another project once I updated styled-components to v4, which seems to change the prop from a function to an object (this is the snapshot):
Happens when passing components created using the styled-components library as props.
For example:
This also has the nasty side effect of requiring a snapshot update whenever any of the styling rules on the prop being passed are changed. Would be nice if it just said
Object {}
instead!Is there any way around this?
The text was updated successfully, but these errors were encountered: