Skip to content
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

React 0.14 beta3 support #1361

Closed
wants to merge 9 commits into from
Closed

React 0.14 beta3 support #1361

wants to merge 9 commits into from

Conversation

juhaelee
Copy link

@juhaelee juhaelee commented Aug 7, 2015

If we could create another branch for react 0.14 I think that would be a better option.

Side note: I'm currently supporting a npm module called material-ui-io if people want to use React 0.14 with material-ui until this main library gains support

@cliffrowley
Copy link

+1 and @juhaelee I am about to start using your fork so I'll let you know how things go ;-)

@t-kelly
Copy link

t-kelly commented Aug 10, 2015

+1 I'll also start testing this. Need it for development until the official is released. Thanks!

@andreimc
Copy link

What are the benefits of using onTouchTap?

@oliviertassinari
Copy link
Member

What are the benefits of using onTouchTap?

Mainly for this reason http://updates.html5rocks.com/2013/12/300ms-tap-delay-gone-away
So by removing the onTouchTap, I believe we gonna have a 300ms delay on safari iOS phones.

@Webkadabra
Copy link

Very happy to find that fork! However, it's be great to have 0.14 support for original material-ui ^^

@shaurya947
Copy link
Contributor

We hear y'all! We're probably going to release v0.12 today and will see how we can support react v0.14.0-rc1. :)

@shaurya947
Copy link
Contributor

From what I hear, here's what we need to do to support rc1 of React v0.14:

  • change our dependencies (package.jsons)
  • limit to two packages: react and react-dom, and separate packages for anything else we're using
  • change how we use the refs
  • change how findDomNode() is called.

Is there anything else you guys are aware of that I'm missing?

Also, we would still like to support v0.13. So I was thinking we could change our dependencies to something like this

What do you guys think? @oliviertassinari @juhaelee

@oliviertassinari
Copy link
Member

change our dependencies

Yes, I think that we can use somethings like >= 0.13.0 < 0.15.0 || ^0.14.0-rc.

we would still like to support v0.13

I agree.

change how we use the refs

What's wrong?

change how findDomNode() is called.

I thinkg that we can use a wrapper like this one

const findDOMNode = ref => React.version < '0.14.0' ? React.findDOMNode(ref) : ref;

or simply React.findDOMNode and keep the warning.

@shaurya947
Copy link
Contributor

I like those ideas @oliviertassinari. We just published v0.12 with the new theming changes, and created a new branch to start looking at v0.14-rc1 support.

If we're using refs for any built-in DOM components, we would need to change them https://facebook.github.io/react/blog/2015/09/10/react-v0.14-rc1.html#dom-node-refs

@shaurya947
Copy link
Contributor

@juhaelee could you update these for rc1 and submit a PR to the react-0.14-support branch instead?

@shaurya947
Copy link
Contributor

I'm not sure if this is still needed after #1751 @juhaelee @oliviertassinari

@oliviertassinari
Copy link
Member

docs/src/app/app-routes.jsx changes are interesting!

@shaurya947
Copy link
Contributor

Indeed, just looked at them

@juhaelee
Copy link
Author

Sounds like @oliviertassinari's branch is a more updated PR. I haven't gotten around to updating this for react0.14rc or rr1.0, so I'm going to close this PR for now if it's ok with you guys @shaurya947

@juhaelee juhaelee closed this Sep 28, 2015
@shaurya947
Copy link
Contributor

Good with me @juhaelee! Just hoping to get something going soon so we can start supporting rc1 :)

mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Nov 10, 2020
* Patreon sponsor duplicate key issue

* Removed duplicated entry
@zannager zannager added the docs Improvements or additions to the documentation label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants