Comment

Comment by matthewmacleod

Have you looked at using arrow functions in class properties for this? They have some issues, but avoid all the tedious manual binding.

Alternatively, the autobind decorator could help - though I’ve never used that myself.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton