Skip to content

feat: SolidComponent let bindings can be used as TagValues#36

Merged
shayanhabibi merged 11 commits intomasterfrom
develop
Jul 20, 2025
Merged

feat: SolidComponent let bindings can be used as TagValues#36
shayanhabibi merged 11 commits intomasterfrom
develop

Conversation

@shayanhabibi
Copy link
Copy Markdown
Owner

Previously could only use type constructors with !@/TagValue to be used for components like Route etc.

This was inconvenient, as there were plenty of cases where I wanted to pass the value of a JS constructor function that would have been sufficient as a let binding in F#, but for the sake of type safety, I would acquiesce.

Now the restriction is lifted. Any function call which outputs a HtmlElement will be eligible to be boxed into a TagValue. HOWEVER, keep in mind that when the TagValue is rendered out, it will be rendered as a 'tag', meaning all the parameters passed to it will be packaged in a props param (the first param passed to the tag/func).

shayanhabibi and others added 11 commits July 5, 2025 22:02
FIX #29: TypeCastDrill for attribute Set expressions
FIX: SolidStart FileRoutes.toRoute helper uses Emit macro now.
FIX #29: TypeCastDrill for attribute Set expressions
FIX: SolidStart FileRoutes.toRoute helper uses Emit macro now.
# Conflicts:
#	Partas.Solid.Tests.Plugin/Compiled/Partas.Solid.Tests.Plugin.Compiled.fsproj
#	Partas.Solid.Tests/SolidTests.fs
#	Partas.Solid/Builder.fs
@shayanhabibi shayanhabibi added this to the 1.2.0 milestone Jul 20, 2025
@shayanhabibi shayanhabibi merged commit 0e87429 into master Jul 20, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant