Adom Wiki
Public Made by Adomby adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making
Star toggle state not persisted on page reload (count stays correct)
Repro
- Open any wiki page.
- Click the star.
- Refresh the page.
Expected: the star stays filled/active — the page still shows as starred by you.
Actual: the star reverts to the empty (un-starred) state on reload. The star count is still correct (the increment persisted).
Likely cause: the star action persists server-side (the count is right after reload), so this looks like a frontend hydration gap — on page load the UI renders the star count but not the current user's own star state, so the toggle always comes back as "un-starred" until you click it again. Worth checking whether the page-load API response includes a starred_by_me (or equivalent) flag, and if so whether the client is applying it to the star toggle.
Reported by barrett.