This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
False positive when mapping over a list of elements #1
Comments
Hey @danielo515, thanks for this report! Open to a PR? |
If it is within my ability, then sure. But I don't know where to start. Mind giving me a little guidance? |
Hey @danielo515 I could not reproduce the error you reported... Can you provide a small and complete example? Also, your component is typed wrong, it should be: const Chat = ({ chat }: { chat: SelectChat }) => ( The JSX syntax provides all properties through a single object parameter... |
arthurfiorette
added a commit
that referenced
this issue
Oct 3, 2023
I fixed some type cases with |
Yep, I also noticed that some time after opening this issue. Gonna update the pgin and see if this problem is fixed. Thanks |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, thank you for this nice server-side jsx alternative and plugin for safer operation.
I'm getting what I think it is a false positive in one quite common JSX usage, mapping over a list of elements. I'm just iterating a list and using a component, which has the required safe attributes, but the compiler is complaining at the mapping site. Here are the component and the part where it errors:
As you can see, the component is already taking care of escaping any potential issue, so, how can I workaround this?
The text was updated successfully, but these errors were encountered: