In WebSharper 3 records are simple JS objects: { a: "", b: ""} In WebSharper 4 they have constructors and therefore proto. How can I make them simple objects again?

Thank you

  • JankoA

    Hi,

    there is currently an opt-out for having prototype, using [<DefaultAugmentation(false)>] which is kind of a hack reusing an F# attribute that has special meaning for unions. Discussed this internally, we agree that prototype should be opt-in, look for this in a WS4 release soon: https://github.com/intellifactory/websharper/issues/670