mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
Refactored a bit router options.Wrap and options.InnerWrap usage in RouterProvider and Match components. Now they will be able to provide context for their children components. Added few tests for scenarios that were failing before. Fixes #3744 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * New Features * Consistent wrapper handling across routing so routed content and pending states share the same wrapper/context without adding extra DOM nodes. * Exposed createMemoryHistory for memory-based routing in apps and tests. * Refactor * Simplified suspense and wrapper handling for clearer, safer rendering behavior. * Tests * Added tests verifying context propagation through wrappers and into pending (fallback) states. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
37 lines
1.1 KiB
37 lines
1.1 KiB