You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the switch and match components seem to come from thin air. they are not referenced anywhere in the code or in the docs. If you're saying they are helper components, shouldnt they be brought in from an import like how it's done with Suspense? the implementation seems a bit anti-pattern.
just curious, have you thought about Vue's directive syntax ie. <s-switch></s-switch> for control/logical flows? but yes, thank you for having this sort of magic in the list of docs.
My original approach(before the linked rfc) was like that. I used $ but more or less the same. The idea that an intrinsic element that would be compiled away can be used not to confuse things. Ultimately the motivation for the change is now anyone can write control flow. Don't like how For works write your own variant. There is no VDOM here and the template DSL is wide open, so if someone feels they can write it better or has a cool idea they can make it.
That being said I really liked the auto imports from the original approach so I kept it. But having used TS where it isnt an option I realize it's not that bad. Not doing it sort of takes away from that Svelte magic appeal but I probably shouldn't be concerned with that.
Activity
ryansolid commentedon Feb 13, 2020
Sorry for the confusion. Solid compiler auto imports a number of built in control flow components from "solid-js/dom"(https://github.com/ryansolid/solid/blob/master/documentation/rendering.md#control-flow) It's from an earlier time before (https://github.com/ryansolid/solid/issues/42). I'm going to update the docs better.
It is arguable whether this behaviour is beneficial anymore since it is a bit confusing.
ryansolid commentedon Feb 13, 2020
I've updated the docs https://github.com/ryansolid/solid/blob/master/documentation/rendering.md#control-flow.
yuens1002 commentedon Feb 13, 2020
just curious, have you thought about Vue's directive syntax ie.
<s-switch></s-switch>for control/logical flows? but yes, thank you for having this sort of magic in the list of docs.ryansolid commentedon Feb 13, 2020
My original approach(before the linked rfc) was like that. I used $ but more or less the same. The idea that an intrinsic element that would be compiled away can be used not to confuse things. Ultimately the motivation for the change is now anyone can write control flow. Don't like how For works write your own variant. There is no VDOM here and the template DSL is wide open, so if someone feels they can write it better or has a cool idea they can make it.
That being said I really liked the auto imports from the original approach so I kept it. But having used TS where it isnt an option I realize it's not that bad. Not doing it sort of takes away from that Svelte magic appeal but I probably shouldn't be concerned with that.
fix(signals): keep a verdict reader's lane routing and own-error reco…
fix(signals): re-derive a self-errored stale reader at the lane's end…
fix(signals): latest() of a memo born in a lane throws NotReady, not …
fix(signals): latest() opens no transaction for its verdict; its read…