Open mukundshah opened 3 months ago
What if you change the prop dynamically if your app? Those will no longer be reactive 🤔
<template>
<UButton :color="status === 'error' ? 'red' : 'green'" />
</template>
Such should be avoided/skipped. We should be able to figure out whether or not the call is dynamic or not. I have been looking into pinceau, stitches and other libraries which does such transformation.
Even a quarter reduction in runtime calls would be nice I guess
Do you plan to make a PR for this? 😊
Not yet. I haven't been able to work on this because of my finals. You can close this till I get a breakthrough.
Description
For example:
In this component, the dynamic class could have been replaced with it's expected output, most probalby during the build time, eliminating the runtime call and probably reducing script size.
The compiled template will be then only:
This is what I have been able to come with so far:
Additional context
No response