This repository was archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Preboot buffer: Application bootstrap on the server generated node. #91
Comments
If I'm reading it right it might be fixed by PR #83 as it removes |
Yes totally. Thanks for the hard work on that PR ! |
8 tasks
Any ETA on a release for this fix? |
@rezonant Just published, let me know if there are any bad effects. |
@CaerusKaru I don't see any bad effects for now and this issue is resolved with the new version. Thanks a lot. |
@Willovent in that case could you close the issue? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What is the current behavior?
Sometime the application bootstrap on server generated DOM node, leaving the hidden buffer empty.
When this happened, once the app is stable, preboot will delete the node containing the booted application and leave the empty buffer node.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem by creating a github repo.
So here is the code causing the issue:
app.module.ts
What is the expected behavior?
The application should boot everytime in the buffer DOM node
Please tell us about your environment:
As you can see in the file app.component.ts, I trigger a
debugger;
when the buffer is empty while the app is stable. When this is the case, the DOM look like this:Once the
replayAll()
is done, it's only leaving the emptyhg-root
node in the DOM.To be sur that the app was boostrapping in the wrong node, I changed some string the client main.js file. Those string were changed in the second hg-root DOM node, proving the application is well booted but in the wrong node.
After futher search, it appear that the bootstrap of the application is started before preboot can create the buffer node. The bootstrap was done in the event
DOMContentLoaded
, for now I had asetTimeout(10)
to go with thewaitUntilReady
preboot function and it seems to be ok.The text was updated successfully, but these errors were encountered: