feat: move RPC client response in a lazy way #80
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Preparing the ground for #73
Related to #47
The first time the
_rpc-lazy
script is downloaded in parallel with the action request. Then once it has loaded it loads only the action. The requests are made at the same time so the action is not delayed. This makes sense for two reasons:All this reconcilation does not make sense to be when loading the page, since it will always happen when executing an action, since in the web components the signals are used, and the grace is that this system will react with the web components and the signals properly because when going through the DOM tree walker it will not go inside the web components but it can update its attributes and making them react internally preserving its state and without unmounting itself.