-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shouldForwardProp
should be used for passing transient props in styled-components
#223
Comments
I'm also encountering this issue. |
Any update on this issue? |
I think know its related to line 44 but can not figure out how to solve it. I have tried but not success:
|
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: