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

(Question) Using react-intl with react portal #1192

Closed
GersonDias opened this issue Oct 2, 2018 · 2 comments
Closed

(Question) Using react-intl with react portal #1192

GersonDias opened this issue Oct 2, 2018 · 2 comments

Comments

@GersonDias
Copy link

There are plenty of libraries that use the react portal to create their functionalities. I'm using some of them in my project, like React-Contextify and react-confirm-alert and I receive the message

[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.

What is the best way to deal with that?

@marcesengel
Copy link
Collaborator

Hm, good question. My PR #1186 might fix this by utilizing the new context API.
However I'm not sure about that one. I'd suggest waiting for it being merged and trying whether it's fixed by that.

@sergioviniciuss
Copy link

Wouldn't that be the case of using the imperative api to provide the intl object? like it's being suggested here: #416

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants