-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Pre-V1 Compatibility with React Fiber #7605
Comments
Thanks for the feedback, maybe we could wait for |
@oliviertassinari When I tried to get my project up and running with React Fiber, I saw Admittedly I'm not very familiar with the internals of React DOM, but it just seemed like the things Cool, when I find some time I might be able to take a look at removing |
|
Alright I'll try get on that a bit tonight and scope out the amount of work needed. If it's really just renaming the prop, can hopefully get it changed over quickly. |
@oliviertassinari really struggling to get set up with the dev environment alongside my project with symlinks |
@lostpebble Nowadays, I'm running the documentation. In the past, I was using the master branch in one of my projects. I had to add some extra babel plugin in my config, I can't remember. It was a long time ago. |
@oliviertassinari Okay, I've managed to remove the reliance on I'm going to see if I can make that change along with this one. Should I first make the pull request removing |
Good news! Yes, that's already a major change. Let's make small PRs.
Oh boy, that's some real determination you have here! |
@oliviertassinari yea... just realising now the scope of changing the refs over... 😅 Will have to see if I can devise some kind of fool-proof regex / process to handle it. Might take some time. Okay, I'll make the pull request now then for the EDIT: React v16 might support refs after all... I'll check tomorrow. Using |
Alright can confirm that the changes are working for both the new React Fiber and v15 in my project, and all the tests are passing. I'm just getting some strange behaviour in React Fiber related to DropDownMenu's not popping up in the correct place (using a fixed position in the top left - or however you've set the anchor probably - of the screen instead of anchored to the button element which triggered it). Since this pull request works fine in the v15 React, this could be a regression (or stricter progression) of some kind in the new React code base. I'm going to be looking into that now. |
I've managed to fix the [PopOver] problem now in another branch. It appears that all my commits from this pull request are getting bundled into that one now though... So not sure what to do. Might have to wait for the first one to be accepted? Or maybe I can somehow remove the previous commits from that branch... |
Would this be landed on 0.18.x? |
@salterok We will release it as v0.19.0. |
@lostpebble What's missing for closing this issue? Regarding the timing of the release, I think that we should aim for the first pre-release of React so we are not too early nor too late. |
@oliviertassinari as far as I can tell, this issue is actually resolved now. I'm currently using master branch in my projects with React v16 beta and haven't had any problems. Waiting for the first RC sounds reasonable, just to make sure everything is actually up to scratch - although I do think nothing much is going to change now going into the full release. So up to you whenever you see fit. Guess I'll close this one then 🙂 |
Awesome, it's also making the master branch a step closer to the v1-beta one :). |
Thanks a lot for your effort here! |
Glad to help out! It's a great library and I've used it for a while, was time to give back a bit :) |
This is great work. Thank you. Personally I'd love to have this asap as we're working through the migration to Fiber (which is apparently out to all Facebook by now) and this pesky react-tap-event-plugin on the SelectField is holding us back. |
@maierson The thing is, we also want to encourage people migrating to v1-beta. I will try to release it this weekend. |
@oliviertassinari I'm also very interested in that (and would much prefer it). Just waiting for the SelectField and Popover which we use a lot. Thank you again. |
@oliviertassinari The thing is, v1-beta is either incomplete for many people's needs, or said people don't particularly want to rewrite major parts of their app. I happen to fall in both groups. Thanks for attempting to get this release out :) |
We have released 0.19.0. Please report any issues with react@next. |
@oliviertassinari @lostpebble Big thanks ! |
@oliviertassinari @lostpebble Big thanks indeed! |
Worked flawlessly here, on a medium-sized application. To ease up transition, I just want to inform users that only |
Echoing @pikzen's comment above - does that mean that |
It is not, they just have not been renamed. From what I can see, they all internally call onClick. |
When
No issues when |
I found the same @mjclawar - since this is closed, that should probably be logged as a separate issue (or this should be re-opened). Release notes make it seem like |
So far I have not - I use a fair spread of the material-ui controls throughout my project. I'll report back there if I find any more. Thanks! |
Problem description
I have tried to update my React version to the new releases of Fiber but it appears that
react-tap-event-plugin
is no longer compatible with those versions of React.I make use of Material-UI components such as DatePicker and SelectField, which are not yet on the release map for V1... and there is no real timeline on their release, which is a concern because it would mean that the only thing holding me back from using React Fiber is my reliance on those Material-UI components.
Is there no way to allow the pre-V1 release of Material-UI to forgo the reliance on
react-tap-event-plugin
(just make use of the regular onClick event listeners) and in doing so allow its use with the React Fiber.Because of the unknown timeline of when all the gaps will be filled with the newer version of Material-UI, this would require me to probably use other component libraries just to fill in those gaps until Material-UI catches up. If there was an easy way to make the older versions compatible (maybe a global switch which removes the reliance on
react-tap-event-plugin
), that would be great.Versions
The text was updated successfully, but these errors were encountered: