3 ms·
But it's based on the fetch standard and formData submission. You're literally running a server that handles those two things.
by nobleach 2y ago
But it's based on the fetch standard and formData submission. You're literally running a server that handles those two things.
- nullpoint420 2y agoMy point being, it's "based on" Web Standards, it is _not_ Web Standards. What if I use `fetcher.submit(data, { encType: "application/json" })`? Why not just use fetch directly at that point? I believe it adds a layer of indirectness that just wasn't there before. If web standards are so important, why don't we use `window.fetch` and `new FormData()` directly instead of wrapping it?
- nullpoint420 2y agoMy favorite example of this being JSON gets converted to FormData on the frontend, which then gets POST-ed to the server, which then converts it to JSON on the backend.