mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-12-06 07:34:00 +00:00
A failed request left the store error set while the view kept its own empty-list branch, so the page said nothing was cached. Every view now checks loading, then error, then content, and the retry button refetches. Unknown paths render a NotFound page with a link to the dashboard. The brand shares the sidebar left edge, and a stopped socket reads Live updates paused in a neutral tone; the client already retries with backoff.
10 lines
277 B
TypeScript
10 lines
277 B
TypeScript
import { createMemoryHistory } from 'vue-router'
|
|
import { createAppRouter } from '@/router'
|
|
|
|
export async function createTestRouter(initial = '/') {
|
|
const router = createAppRouter(createMemoryHistory())
|
|
await router.push(initial)
|
|
await router.isReady()
|
|
return router
|
|
}
|