-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Export testOmitPropsOnStringTag for external usage #611
Comments
@mitchellhamilton cool! thank you ❤️ any plans to release this in 9.x line (I can live with duplication for now, just wondering) Also could u comment on this one:
EDIT:// I guess this won't be included 9.x line, as |
It's already used in 9.x.
In regards to the omitFn option, I think it definitely could be useful(especially for styled-system which I really like so 👍 ) so I'd be happy to accept a PR though it should probably be called @tkh44 do you have any thoughts on this? |
Actually existing options are preserved (like proposed |
I meant if this happens but it's probably pretty uncommon so let's just leave it. |
Yeah, it's rather uncommon especially that it's not officially supported to pass there anything more than what babel plugin adds and which is already an object. Gonna prepare a PR soon for this so we can discuss it further under it. |
Problem description:
I have custom SVG components and I'd like to filter out DOM props before passing them to a component that renders
svg
(and it doesnt do anything else than that).Suggested solution:
Just export this util so it can be reused in application code. Probably could be a separate package? Can prepare a PR for this if find it useful.
Maybe we could just expose
omitFn
as static property on the returnedStyled
class (or accept it as config option increateStyled
) - that way one could override it nicely without introducing unnecessary component layer.The text was updated successfully, but these errors were encountered: