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

Expose react.lazy and react.Suspense in @wordpress/element #14155

Closed
TimothyBJacobs opened this issue Feb 27, 2019 · 3 comments
Closed

Expose react.lazy and react.Suspense in @wordpress/element #14155

TimothyBJacobs opened this issue Feb 27, 2019 · 3 comments
Labels
[Package] Element /packages/element

Comments

@TimothyBJacobs
Copy link
Member

We're using the react external, but it'd be nice if this was exported on @wordpress/element. We're using this to async load some components ( outside of the block editor ).

@swissspidy swissspidy added the [Package] Element /packages/element label Mar 1, 2019
@youknowriad
Copy link
Contributor

Not against the idea but both these two components rely on the fact that the public URL of your website is known before hand and hardcoded on your bundler somehow. Curious how you plan to use these in the context of a WordPress plugin..

@TimothyBJacobs
Copy link
Member Author

We're setting __webpack_public_path__ at runtime.

https://webpack.js.org/guides/public-path/#on-the-fly

@youknowriad
Copy link
Contributor

Oh interesting, I was missing this, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Element /packages/element
Projects
None yet
Development

No branches or pull requests

3 participants