Closed lxsmnsyc closed 6 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
million-kitchen-sink | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 31, 2024 10:12pm |
sink | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 31, 2024 10:12pm |
Amazing stuff!!! This is insane @lxsmnsyc!
One big change is that block
components no longer compile into block
but into compiledBlock
. compiledBlock
manages both hoisted templates and portals via statically analyzing how much of the elements needs to be rendered into a portal.
Another thing that this unlocks is that you can now do branching statements inside block
properly.
One big change is that
block
components no longer compile intoblock
but intocompiledBlock
.compiledBlock
manages both hoisted templates and portals via statically analyzing how much of the elements needs to be rendered into a portal.Another thing that this unlocks is that you can now do branching statements inside
block
properly.
Oh damn! That sounds awesome; and by "branching statements" you mean conditionals, yes?
@tobySolutions yes. I believe the previous block compilation didn't support this, because of the compiler output for portals.
@tobySolutions yes. I believe the previous block compilation didn't support this, because of the compiler output for portals.
Yes, you are right! Amazing work Alex, this is huge progress!
Current issues (as per kitchen-sink), checked = fixed:
Changes:
Reworks left:
Tasks left:
_c
has been disabled for now since there's no good metric for it to be enabled. It's tricky to know if a component is actually relying on some underlying React Fiber.unstable
for renderReactScope is set to false
for compilation since the old compilation doesn't have any scenario where it is true
.rsc
is yet to be supported.compiledBlock
is 1:1 code in both server and client.For
children optimization has been skipped for now.auto
has been disabled for now since, even though React encourages purity, they still have APIs that allow JSX mutation.@Aslemammad @aidenybai I'm closing this PR down, but not the branch, so feel free to backup things that you wanted.
🚧 UNDER CONSTRUCTION 🚧
Goals
For
handling.map
handlingreturn
)