Commit graph

2 commits

Author SHA1 Message Date
Subho
ddcf092678 Add empty dependency array to useEffect hook
This limits the file watch listener to only attach once and not on every
render which is unnecessary.
2024-07-12 15:33:11 +02:00
Martin Pitt
745b4ab8e8 Convert to TypeScript
This needs the usual "I know the `app` element exists" annotation, plus
dealing with a non-existing /etc/hostname (in which case the watch will
return `null`, and we shouldn't poke that into a `string` state).
2024-07-11 11:18:23 -04:00
Renamed from src/app.jsx (Browse further)