Skip to content

Crash mint with a state setter #766

@ryanprior

Description

@ryanprior

This code produces a Mint runtime bundle that immediately crashes & fails to render anything:

component Main {
  state message : Maybe(String) = Maybe.nothing()
  fun render : Html {
    "Hello world!" |> Maybe.just |> ->message
    <div>message |> Maybe.withDefault("")</div>
  }
}

Sandbox: https://mint-lang.com/sandbox/BdCv2RuEQ9GCRg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions