You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fable.Extras does not compile with the latest fable version.
Describe the solution you'd like
Only a few functions from Fable.Extras are actually used. I'd suggest to get rid of the dependency.
Describe alternatives you've considered
Updating Fable.Extras to work with the latest Fable version.
Additional context
This is enough to make Feliz.Recoil work without the Fable.Extras dependency.
namespaceFeliz.RecoilopenFable.CoreopenFSharp.CoreopenFable.Core.JsInterop[<Erase; RequireQualifiedAccess>]moduleJSe =/// Tests to see if the prototype property of a constructor appears/// anywhere in the prototype chain of an object.////// This should only be used when working with external code (like bindings).[<Emit("$1 instanceof $0")>]letinstanceOf(ctor:obj)(value:obj):bool = jsNative
/// Type checking and equality helpers.[<Erase>]typeis=[<Emit("typeof $0 === 'function'")>]static memberfunction' (value:obj):bool = jsNative
[<Emit("typeof $0 === null")>]static membernull' (value:obj):bool = jsNative
/// Checks if the input is both an object and has a Symbol.iterator.[<Emit("typeof $0 === 'object' && !$0[Symbol.iterator]")>]static membernonEnumerableObject(value:obj):bool = jsNative
/// Normal structural F# comparison, but ignores top-level functions (e.g. Elmish dispatch).static memberequalsButFunctions(x:'a)(y:'a)=if obj.ReferenceEquals(x, y)thentrueelif is.nonEnumerableObject x &¬(isNull(box y))thenletkeys= JS.Constructors.Object.keys x
letlength= keys.Count
let mutablei=0let mutableresult=truewhile i < length && result doletkey= keys.[i]
i <- i +1letxValue= x?(key)
result <- is.function' xValue || xValue = y?(key)
result
else(box x)=(box y)/// Performs a memberwise comparison where value types and strings are compared by value,/// and other types by reference.static memberequalsWithReferences(x:'a)(y:'a)=if obj.ReferenceEquals(x, y)thentrueelif is.nonEnumerableObject x &¬(isNull(box y))thenletkeys= JS.Constructors.Object.keys x
letlength= keys.Count
let mutablei=0let mutableresult=truewhile i < length && result doletkey= keys.[i]
i <- i +1letxValue= x?(key)
result <- is.function' xValue || obj.ReferenceEquals(xValue, y?(key))
result
elsefalse
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
Fable.Extras does not compile with the latest fable version.
Describe the solution you'd like
Only a few functions from Fable.Extras are actually used. I'd suggest to get rid of the dependency.
Describe alternatives you've considered
Updating Fable.Extras to work with the latest Fable version.
Additional context
This is enough to make Feliz.Recoil work without the Fable.Extras dependency.
The text was updated successfully, but these errors were encountered: