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
Here line e.props && e.props.i && (n = e.props.i, delete e.props.i), e.props && e.props.s && (t = e.props.s, delete e.props.s), e.s = t, e.i = n, Object.defineProperties(e, l), o && o(e); "pops" i and s from props and rewrites it to the component.
What is the expected behaviour?
Props __self and __source should not be mangled to i and s.
Please mention other relevant information.
I noticed this problem, while trying to use https://github.com/STRML/react-grid-layout, which uses a prop with the name "i". I was getting strange errors about missing required props.
Seems like this issue was present in all 10.0.0 versions, but for different prop names.
Hey, thank you so much for this issue report. The research has made it easy for me to file the appropriate fix and is now in pull request. Thank you for the effort!
Do you want to request a feature or report a bug?
bug
What is the current behaviour?
Preact pops
i
ands
from props, confusing them with__source
and__self
.If the current behaviour is a bug, please provide the steps to reproduce.
Example application: https://codesandbox.io/s/focused-yalow-fiqpy.
I used the debugger to follow execution and got to part:
Here line
e.props && e.props.i && (n = e.props.i, delete e.props.i), e.props && e.props.s && (t = e.props.s, delete e.props.s), e.s = t, e.i = n, Object.defineProperties(e, l), o && o(e);
"pops"i
ands
from props and rewrites it to the component.I checked sources from npm:
You will see 0, as grep will find troubling part.
What is the expected behaviour?
Props
__self
and__source
should not be mangled toi
ands
.Please mention other relevant information.
I noticed this problem, while trying to use
https://github.com/STRML/react-grid-layout
, which uses a prop with the name "i". I was getting strange errors about missing required props.Seems like this issue was present in all 10.0.0 versions, but for different prop names.
The text was updated successfully, but these errors were encountered: