Skip to content

Frontend Routing and State

RouteComponentRelevant state
/Bibliotecaquery, category, filters, order, mode
/livro/:idLeiturafile, page/position, and return path
/historicoHistoricoprogress and last access
/continuarredirectcompatibility with /historico
/estatisticasEstatisticasreading aggregates
/series/:idSeriework/series and sequence
  • server: catalog, tree, profiles, reading state, preferences, and operations;
  • URL: categoria, q, secao, ordem, modo, subpastas, and filters;
  • localStorage: favorites/recent items and per-profile progress fallback;
  • sessionStorage: scroll by route/query;
  • Context: theme;
  • IndexedDB/Cache Storage: offline inventory and bytes.

readingSync.js merges by timestamp and avoids losing the most recent position. Mutations invalidate related queries.