material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[React] Fix props forwarding warning for v15.2.0

Open oliviertassinari opened this issue 10 years ago • 25 comments

Problem description

React is about to release a new version of React: v15.2.0. They are introducting a new warning. For more details, https://github.com/react-bootstrap/react-bootstrap/issues/1994 is a good place to start.

We are already aware of this issue (props forwarding down the tree) and we have tried to address it. However, I'm pretty sure it's not solve at 100% yet.

oliviertassinari avatar Jun 30 '16 17:06 oliviertassinari

@oliviertassinari Oh my, this is going to be fun 😄, 73 warnings in the documentation.

nathanmarks avatar Jun 30 '16 23:06 nathanmarks

We should fix this issue quickly, v15.2.0 has already been released https://github.com/facebook/react/releases/tag/v15.2.0. I'm gonna work on it this week-end.

oliviertassinari avatar Jul 01 '16 19:07 oliviertassinari

I did think that I was doing my own elements and styles wrong, but then after updating my code the only warnings left were pertaining to the material-ui components I was using. Look forward to a fix for all those!

flaccid avatar Jul 02 '16 01:07 flaccid

@flaccid should be finished tomorrow

nathanmarks avatar Jul 02 '16 03:07 nathanmarks

My application is blowed up after having updated to 15.2. Looking forward to some fixes.

buhuo

OshotOkill avatar Jul 02 '16 07:07 OshotOkill

Most of the warnings should be fixed on the master branch now. We need the feedbacks of the community to fix the remaining one. I'm closing this issue. @callemall/material-ui Would be good to do a release soon.

oliviertassinari avatar Jul 03 '16 08:07 oliviertassinari

Would be good to do a release soon.

0.15.2 is ready to be released. I'll include these changes and update the notes soon.

alitaheri avatar Jul 03 '16 09:07 alitaheri

@alitaheri I have one more fix that needs doing for 0.15.2. Stepper animation in Safari.

nathanmarks avatar Jul 03 '16 15:07 nathanmarks

After update to master from npm latest version, still get transitionAppearTimeout . Full message:

warning.js:44 Warning: Unknown prop `transitionAppearTimeout` on <div> tag. 
Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in div (created by ReactTransitionGroup)
    in ReactTransitionGroup (created by DialogInline)
    in div (created by DialogInline)
    in DialogInline
    in MuiThemeProvider

Intey avatar Jul 03 '16 22:07 Intey

After update to master from npm latest version, still get transitionAppearTimeout

@Intey That's an issue with React. Wait for them to release a fix. https://github.com/facebook/react/issues/7163.

oliviertassinari avatar Jul 04 '16 06:07 oliviertassinari

Any word on when these changes might land in a new release?

alexhancock avatar Jul 05 '16 20:07 alexhancock

@alexhancock Soon.....https://github.com/callemall/material-ui/pull/4572

alitaheri avatar Jul 05 '16 20:07 alitaheri

Cool - thanks!

alexhancock avatar Jul 05 '16 21:07 alexhancock

This version is breaking with the package [email protected]

lnmunhoz avatar Jul 18 '16 22:07 lnmunhoz

I'm still getting a bunch unknown-props-warnings in 15.0.2. Am I alone in this?

JasperH8g avatar Jul 20 '16 11:07 JasperH8g

@Jpunt A couple more have been fixed since the release. Could you try with the master branch?

oliviertassinari avatar Jul 20 '16 11:07 oliviertassinari

@oliviertassinari I'd like to, but when I install the package from its git-url I get the following error:

UNMET DEPENDENCY material-ui@git://github.com/callemall/material-ui.git#master

How should I install this?

JasperH8g avatar Jul 20 '16 11:07 JasperH8g

I encounter an issue with MenuItem:

React.dll.js:19164 Warning: Unknown prop `onRequestClose` on <span> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in span (created by EnhancedButton)
    in EnhancedButton (created by ListItem)
    in div (created by ListItem)
    in ListItem (created by MenuItem)
    in MenuItem (created by Menu)
    in div (created by List)
    in List (created by Menu)
    in div (created by Menu)
    in ClickAwayListener (created by Menu)
    in Menu (created by MenuItem)
    in div (created by PopoverDefaultAnimation)
    in div (created by PopoverDefaultAnimation)
    in div (created by Paper)
    in Paper (created by PopoverDefaultAnimation)
    in PopoverDefaultAnimation
    in MuiThemeProvider

Anyway to fix it? Master branch is no help here. Thank you,

GuillaumeCisco avatar Jul 21 '16 12:07 GuillaumeCisco

@GuillaumeCisco As far as I have looked at it. This props is most likely provided on your side. Somewhere it has no effect.

oliviertassinari avatar Jul 22 '16 17:07 oliviertassinari

@oliviertassinari, are you referring to the React.dll.js file? Cuz I use the webpack dll plugin. Anyway, I didn't write onRequestClose in my business code, it comes from redux-form.

GuillaumeCisco avatar Jul 22 '16 17:07 GuillaumeCisco