-
Notifications
You must be signed in to change notification settings - Fork 34
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
Behavior on server-side when using in conjunction with dynamic imports #27
Comments
Definitely should resolve. Sorry was half way through updating |
Apologies @oyeanuj been so busy! |
@ctrlplusb No worries, hope you get a chance soon :) |
@ctrlplusb Just checking in for an update here? Not sure if you are done updating |
Hey @oyeanuj You are the definition of patience. 😃 I am trying to throw up a razzle based example now, using react-async-component as well as react-jobs. 👍 |
Ok, got it working. :) Demo: https://razzle-async-components-and-data.now.sh/ Source: https://github.com/ctrlplusb/demo-react-async-and-jobs I also added |
@ctrlplusb I've had a chance to drill down more into this and I have one quick question to ask, and observation to report: Theoretically, should a setup like this work with <App>
<Auth> /* <--- Fetch data */
<ListingPage> /* <--- Fetch data */
<MovieOne /> /* <--- Fetch data */
<MovieTwo /> /* <--- Fetch data */
</Auth>
<App> I'm noticing that the after the first pass of Any ideas or thoughts would be super useful! |
Hi @ctrlplusb, while debugging ctrlplusb/react-jobs#51 & ctrlplusb/react-jobs#56, I realized that if there were jobs on dynamic import components, then those jobs wouldn't execute on the server-side since the components are not being imported before render is considered complete.
Here is a simple summarized hierarchy that could reproduced it for me -
Looking through codebases of this library and
react-jobs
, it seems like this issue should be resolved here. Thoughts on what should be the expected behavior?The text was updated successfully, but these errors were encountered: