Skip to content

Conversation

@natew
Copy link
Collaborator

@natew natew commented Jan 19, 2026

Summary

  • Add createRouteConfig() helper for typed route configuration
  • Add loading modes: 'blocking', 'instant', or number (milliseconds)
  • SSG/SSR routes default to blocking, SPA routes default to instant
  • Cache loading mode on route node after first load for performance

Usage

import { createRouteConfig } from 'one'

export const config = createRouteConfig({
  loading: 'blocking', // or 'instant' or 200 (ms)
})

Test plan

  • Added comprehensive test suite covering all loading modes
  • Tests pass in both dev and prod modes (13/13)
  • CI tests pass

@railway-app
Copy link

railway-app bot commented Jan 19, 2026

🚅 Deployed to the one-pr-652 environment in onestack.dev

Service Status Web Updated (UTC)
one ❌ Build Failed (View Logs) Web Jan 19, 2026 at 8:55 pm

natew added 3 commits January 19, 2026 10:52
- Add createRouteConfig() helper for typed route config
- Add loading modes: 'blocking', 'instant', or number (ms)
- SSG/SSR default to blocking, SPA defaults to instant
- Cache loading mode on route node after first load
- Add comprehensive tests for all loading modes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants