Skip to content

this null check in constructors conflicts with some environments (React Native) #1757

@forki

Description

@forki

I'm porting my fable 1.x React Native App to Fable 2.x and I'm having problems with Array.groupBy .

    let mappedCityGroups = 
        requests
        |> Array.map (fun x ->
            match x with 
            | MeterReadingRequest x -> x.GetCity()
            | MeterChangeRequest x -> x.GetCity())


    printfn "mapped"

    let cityGroups = 
        requests
        |> Array.groupBy (fun x ->
            match x with 
            | MeterReadingRequest x -> x.GetCity()
            | MeterChangeRequest x -> x.GetCity())

the mapping part works, but during groupby it fails with "Cannot read property 'MoveNext' of undefined"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions