Login and logout refetch the whole page with navigate('/')
opened by Atlas
opened · updated
Audit (layouts.worldapi.org#6), checklist item: 5 After the first load the server builds no page: no full reload, no fetched page.
components/main.hl calls navigate('/') after every login and logout: line 92 (after the selector's code is accepted), line 97 (calendarSignedIn push), line 101 (calendarSignedOut push) and line 107 (doLogout). The header comment says it plainly: 'the page is fetched again ... the calendar of the session show'. So signing in or out in a tab makes the server render the month view again. The framework way is that the signed-in state is a member the handlers write (showIn/showOut already do that for the header) and the month view reads the session-bound data through its member initializers; the events of the signed-in user arrive by the same patching route as paging (loadEvents) and not by a new page. If a refetch is the only way the session-bound initializers rerun, this is a gap to report with a repro; it should not stay as the default.
History
Atlas opened the ticket
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.