Commit Graph

490 Commits

Author SHA1 Message Date
Greg Johnston d7e17a2ec9 remove unnecessary logs 2024-08-01 19:42:21 -04:00
Greg Johnston 1182aff410 chore: unused hooks 2024-08-01 19:42:21 -04:00
Greg Johnston 772a837050 make Routes fallback run lazily 2024-08-01 19:42:21 -04:00
Greg Johnston a32c71539d feat: 0.7 query signals 2024-08-01 19:42:21 -04:00
Greg Johnston 0d867ba016 fix: correctly escape text nodes, except in script/style tags 2024-08-01 19:42:21 -04:00
Greg Johnston 50403846c9 fix: provide matched route via context when rebuilding (so <A> works) 2024-08-01 19:42:21 -04:00
Greg Johnston 32f77cc42b refactor insert_before_this to find parent lazily, and use it for rebuilding reactive components by replacing their whole contents 2024-08-01 19:42:21 -04:00
Greg Johnston 626bcdc9ae chore: clean up warnings and logging 2024-08-01 19:42:20 -04:00
Greg Johnston 36272a0b1b Revert "fix: constrain reactive rendering to Fn(), because using dry_resolve() for Suspense requires idempotent render functions so that they can be called once (to register resources) and called a second time to resolve"
This reverts commit 7ec5c77ba3e8f45bae04a7661a56741f95125adb.
2024-08-01 19:42:20 -04:00
Greg Johnston 39c3a63787 fix: relative path resolution 2024-08-01 19:42:20 -04:00
Greg Johnston e0f98dc0fd fix: constrain reactive rendering to Fn(), because using dry_resolve() for Suspense requires idempotent render functions so that they can be called once (to register resources) and called a second time to resolve 2024-08-01 19:42:20 -04:00
Greg Johnston 5d9bd8f913 add Debug impl 2024-08-01 19:42:20 -04:00
Greg Johnston 0a41ae9a5e fix: actually concatenate nested routes during route generation 2024-08-01 19:42:20 -04:00
Greg Johnston fbc6be922d reorganize Outlet export 2024-08-01 19:42:20 -04:00
Greg Johnston 619dc59e1d simplify FlatRoutes logic by using existing OwnedView infrastructure 2024-08-01 19:41:55 -04:00
Greg Johnston 984ede8887 fix: Routes SSR 2024-08-01 19:41:36 -04:00
Greg Johnston c3656416a2 fix: correct owner for HTML rendering in FlatRoutes 2024-08-01 19:41:36 -04:00
Greg Johnston f32d43ce94 pick up on server action error in both server and client 2024-08-01 19:41:27 -04:00
Greg Johnston b9945e0ce1 fix: make router fallback lazy 2024-08-01 19:41:27 -04:00
Greg Johnston bae79e2b2c add ServerAction error handling for any error type (closes #2325) 2024-08-01 19:41:27 -04:00
Greg Johnston 338b01bee3 fix: don't drop Owner in FlatRoutes until route has been rendered (thanks @benwis) 2024-08-01 19:41:13 -04:00
Greg Johnston e275862a20 fix: writing to lock that has a read 2024-08-01 19:41:13 -04:00
Greg Johnston 6dfea0b0a2 additional warnings 2024-08-01 19:41:12 -04:00
Greg Johnston 9fd881603f cargo fmt 2024-08-01 19:41:12 -04:00
Greg Johnston 9666c9c0c5 chore: clear up... a few warnings 2024-08-01 19:41:12 -04:00
Greg Johnston 85d29a5af5 feat: support *either* .await or reactive reads inside Suspense 2024-08-01 19:41:11 -04:00
Greg Johnston 747d847183 fix external navigations 2024-08-01 19:41:11 -04:00
Greg Johnston 694eccbadc restore ssr/hydration for Routes 2024-08-01 19:41:11 -04:00
Greg Johnston 24f2e71563 get nested Routes working again 2024-08-01 19:41:11 -04:00
Greg Johnston 1766bfedb9 default to Params::get() giving an owned value (which you want in a derived signal), but use reference in the macro 2024-08-01 19:41:11 -04:00
Greg Johnston 85b9f87620 make NavigateOptions pub 2024-08-01 19:41:11 -04:00
Greg Johnston 94a3f7c092 unused owner 2024-08-01 19:41:11 -04:00
Greg Johnston 8815529955 routing progress indicator 2024-08-01 19:41:11 -04:00
Greg Johnston 3814879d80 use transition between navigations 2024-08-01 19:41:11 -04:00
Greg Johnston ae254836d7 cargo fmt 2024-08-01 19:41:11 -04:00
Greg Johnston 2dd5efc5d0 create separate URL/params signals for each route, to prevent updating them and running side effects while navigating away 2024-08-01 19:41:11 -04:00
Greg Johnston 15eeda9c7a fmt 2024-08-01 19:41:11 -04:00
Greg Johnston 32294d6cab immediately commit URL signal updates 2024-08-01 19:40:57 -04:00
Greg Johnston 46d286755e reexport A from router::components 2024-08-01 19:40:57 -04:00
Greg Johnston 292e7c1f27 fix FlatRouter SSR/hydration after lazy routes 2024-08-01 19:40:57 -04:00
Greg Johnston ab28c80593 fix: passing context through router 2024-08-01 19:40:57 -04:00
Greg Johnston 802fcc5c2a allow either eager or lazy routes 2024-08-01 19:40:57 -04:00
Greg Johnston 00a536a5dc don't over-rerender nested router 2024-08-01 19:40:57 -04:00
Greg Johnston a7b1152910 initial async routing work (to support bundle splitting) 2024-08-01 19:40:57 -04:00
Greg Johnston cfba7a2797 noop attribute 'spreading' for routers 2024-08-01 19:40:57 -04:00
Greg Johnston b24eaedfe9 reorganizing exports and updating examples 2024-08-01 19:40:56 -04:00
Greg Johnston 4336051f78 prep for preview release 2024-08-01 19:40:56 -04:00
Greg Johnston 420dccda60 provide params properly in FlatRouter 2024-08-01 19:40:56 -04:00
Greg Johnston 75d6763f4e move router crates 2024-08-01 19:40:56 -04:00
Saber Haj Rabiee d50012f8d4
chore: update gloo-net and reqwest to http 1.0 (closes #2688) (leptos 0.6) (#2751) 2024-08-01 19:39:54 -04:00