* test: tests for layouts without an underscore id
* test: correct the tests here
* fix: dont use the removeLayoutSegments and rework how this works
* chore: remove `@typescript-eslint/no-unnecessary-type-assertion` from router.ts
* chore: nuke the `removeLayoutSegments` function
* chore: stop eslint from freaking out
Apparently React.lazy will always suspend, even if the component is synchronously available. Makes sense, but this is annoying when used with our code-splitting paradigm. Since we preload the underlying components and even do our own top-level transition suspense for these components, it doesn't make sense to cause a React suspense boundary to suspend even if we have surely preloaded the component.
With this fix, if the component has been preloaded, it will synchronously render, otherwise it will suspend until it's been loaded.
* 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