* test(react-router): what is expected to happen
* test: .
* chore(react-router): add util for stripping out the layout identifier segments from a path
* fix(react-router): stripping out the layout identifiers segments when matching the fromRoute
* chore: .
* test: better descriptions as to whats happenning
* test(react-router): removeLayoutSegments helper
* chore: too many `"`
* fix(react-router): router status never changing from `pending` to `idle`
* test(react-router): add a test so we dont break this in the future
* test(react-router): check if the onResolved event is emitted
* fix(react-router): usePrevious hook wasnt actually working
* refactor(react-router): undo the changes I first made
* test(react-router): actually waiting for the event to be called
* refactor(react-router): better-er usePrevious hook?
* test(react-router): better names
* test(react-router): unused import
* refactor(react-router): remove the commented out usePrevious hook
* test(react-router): correctly subscribe to the onLoad fn
* test(react-router): restrict to onResolved for now
* test(react-router): check that the "onResolved" event is fired after a navigation as well
* test(react-router): remove the console log statement
* test(react-router): rename the mock function for future re-use
* test(react-router): test router.navigate with params
* test(react-router): test router.navigate with params
* fix: move tests to dedicated redirects file
* test(react-router): more complex tests for multiple params
* test(react-router): refactor tests
* fix: make tests pass
* chore: removed unused route exports
* chore: copy changes
* style(react-router): prettier
Co-Authored-By: Ciarán Curley <ciaran.curley.11.11@gmail.com>
* test(react-router): streamline the tests
* test(react-router): remove the tests from here since they've been moved
* test: test both object and function syntax
---------
Co-authored-by: Ciarán Curley <ciaran.curley@apata.io>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
* fix(react-router): respect the view transition preference on the `<Link>` component
* fix(react-router): make sense the viewTransition property works for router.navigate
* fix(react-router): do not remove the disabled prop for `_asChild` links
* refactor(react-router): useLinkProps always returns a `disabled` boolean
* test(react-router): make sure this works as exptected
* test(react-router): tests to include other props
* test: use queryByText
* feat: infer trailing slash option from router to use at the type level
- always will always add trailing slashes to the leaves of `to` prop
- never will always remove trailing slashes from the leaves of `to` prop
- preserve will allow both paths with or without slashes
* fix: allow branches but not when there is an index route