-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Remove unstable_renderIntoContainer #10143
Comments
It doesn't allow for an incremental upgrade path though. You have to upgrade all your calls at once. Even if those are in third parties. Since the portal API doesn't exist in 15. We used both at the same time so it's fair to assume others might need to. IMO we should keep it for a release and warn. |
That’s fair, agree. |
@gaearon so is the actionable item here adding a warning for |
Let's wait for popular libs to update to portal API first. Will take a few months. |
We use |
@yesmeck Can you please file a new issue to discuss this use case? |
That is an interesting use of the callback, very clever :) I think in the new API we should be able to handle this case the same way as other react components? E.g something like the react-transition-group Transition component. |
I'v create a new issue #10826 |
@gaearon Is there a legitimate reason for still keeping IMHO, the inherent inconsistency of these two APIs causes a certain amount of disorientation to the whole Portals API since the unstable method is used during |
It's time to deprecate it. Want to send a PR? |
It'd be nice to leave until #11387 and related are solved...At the moment there is no real good option for doing what |
Sure. I can start working on it. |
Do you have a sense @gaearon of what is needed in #11387 to move forward? My sense was that the @sebmarkbage proposed an additional |
For the record - I assume we're currently talking about completely killing the API since both the topic name and previous discussion suggest that. What if we kick things off by actually deprecating it via warnings, yet keeping the API intact until a later release? |
My hunch is we want to remove it before 16 because
unstable_createPortal
accomplishes the same thing. I rememberunstable_renderIntoContainer
adding a bunch of complexity that would be nice to get rid of before committing to support it for another release cycle.The text was updated successfully, but these errors were encountered: