shouldForwardProp
should be used for passing transient props in styled-components
#223
Labels
bug
Something isn't working
While rendering PDF document, we get:
console warning:
styled-components: it looks like an unknown prop "last" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via"<StyleSheetManager shouldForwardProp={...}>" (connect an API like "@emotion/is-prop-valid") or consider using transient props ("$" prefix for automatic filtering.)
console error:
Warning: Received "true" for a non-boolean attribute "last".
Solution:
shouldForwardProp
(https://styled-components.com/docs/api#shouldforwardprop) should be used for passing transient propsThe current problem is in:
PDFSingePage
line 23 wherelast
prop is being passed toPageWrapper
The text was updated successfully, but these errors were encountered: