Closed isaacabraham closed 3 years ago
I was wrong. That Fetch method is supplied by the Thoth package. But we don't need to include the Thoth-specific members in the code. In other words, I think that the sample above should still be used - it only uses the raw fetch
method which is standard in Browsers rather than the Thoth-specific extensions.
Thoth.Fetch
or Fable.Fetch
package. I'll see if I can make #415 use the latter oneAwesome. Could / should we use text rather than json (given that the message is actually just plain text)?
I think we should remove Thoth from the minimal template - or at least from the code sample (maybe just keep as a package reference?) - it's simply not required. We also no longer need the use the
json
combinator on the back end:On the server
On the client