dotnet-websharper / core

WebSharper - Full-stack, functional, reactive web apps and microservices in F# and C#
https://websharper.com
Apache License 2.0
598 stars 50 forks source link

Obsolete `ClientSide` #1266

Closed granicz closed 2 years ago

granicz commented 2 years ago

The auto-opened WebExtensions module contains ClientSide, an alias for InlineControl. This function was rarely if ever used, and with the ongoing effort to provide a quotation-free syntax across the entire API, this should now be moved to InlineControl as a new constructor (carry over the comment to it) and marked to auto-quote, leaving the original function marked as obsolete.

granicz commented 2 years ago

Be sure to copy the code comment as well to the new constructor.

Jand42 commented 2 years ago

Now obsoleted in favor of InlineControl constructor call: new WebSharper.Web.InlineControl(expr) (new keyword is optional for F#)