Hacker News new | ask | show | jobs
by kevinak 803 days ago
Why wouldn't you just use a Service Worker for this?
1 comments

There's a couple different ways to skin this cat, but WebAssembly is definitely the "coolest". I'd imagine even a Service Worker is overkill compared to just inlining an optimistic response in whatever rest client you're using.

Kind of similar to the content of this article, I wish people were more upfront with their reasoning. Doing something because "it's rad" is definitely fine by me!

> WebAssembly is definitely the "coolest"

As always: when I doubt, it was likely because of CV-driven development

I just mutate the data object when using SvelteKit. Blasphemy, I know. But it works, and it works well. :P