Ilja Nosik

Results 27 comments of Ilja Nosik

What is the reasoning behind this exception? In my app, the `PlotModel` object is constructed and maintained in the VM, but the view is getting constructed every time the user...

`WarningsAsErrors` doesn't seem to work anymore either.

Treating warnings as errors was disabled for referenced projects, see #2288. But looks like this affects the actual project as well.

I'd have to think about your proposal, but your particular use case should be possible already using the spread operator: ``` fsharp [] type Circle [] (radius: float) = member...

@MangelMaxime I guess I concentrated too much on the proposed code snippet instead of asking the right questions 😅 For your `Circle` use case, can you use TypeScript-style tagged unions?...

Seems like [@alfonsogarciacaro's comment](https://github.com/fable-compiler/Fable/issues/2492#issuecomment-884600518) reiterates what we talked about in #2353. IMHO, this approach makes it much easier to understand what the F# bindings actually represent on the JS side....

A helper like this one could make sense, though. In JS, errors don't necessarily inherit from `Error`, and can be of any type. ``` fsharp let (|Error|_|) (exn : exn)...

This works better: ``` fsharp open System open Fable.Core let (|Error|_|) (exn : exn) = Some (box exn) // Usage: let f () = try JSLib.somethingThatMightThrowAString () with | Error...

The equality operator (or other comparison constructs) can trigger this sometimes as well, because [the `equals` function from `Utils.ts`](https://github.com/fable-compiler/Fable/blob/dacbb6b51157ae01cbba3c835e0dd19e13b5dbdf/src/fable-library/Util.ts#L390) depends on a bunch of other things. Does your bundler have...

Can you generate one of the [other artifacts](https://github.com/btd/rollup-plugin-visualizer#how-to-use-generated-files)? The "Network" option looks like it's what's we're looking for.