Automatic code extraction #3 — conditional jsx #337
maiieul
started this conversation in
Proposals For Qwik
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is it about?
Automatically extracting conditional jsx and remove the need for vDOM/vNodes
What's the motivation for this proposal?
Problems you are trying to solve:
vdOM/vNodes slows down reactivity.
We currrently need them in order to rerun the component in case of component level subscriptions triggered by conditional jsx in the component.
Goals you are trying to achieve:
Proposed Solution / Feature
What do you propose?
We can automatically extract any conditional jsx into a qrl. This way there is no need for vNode diffing as each conditional jsx will produce its own piece of code that can subscribe and update directly to signal changes.
Code examples
See the diff here.
Basically the same as wrapping each conditional jsx into a $() today
Links / References
No response
Beta Was this translation helpful? Give feedback.
All reactions