Comment

Comment by ForkMeOnTinder

Good advice, though I'd recommend Rc<RefCell<T>> instead of Arc<Mutex<T>> if you're not sharing the data between threads, to avoid synchronization overhead. I use Arc pretty rarely.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton