fix(react-router): ResolvedSuspense to always use React.Suspense never the SafeFragment#1822
Conversation
…tack router wtih the current state.
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 8164183. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
ResolvedSuspense to always use React.Suspense never the SafeFragment
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
… would end up redirecting back to dashboard/invoices if using this.state.resolvedLocation
…nce without it tanstack router will navigate back
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
# Conflicts: # packages/react-router/tests/link.test.tsx
|
@SeanCassiere how come you removed the |
|
@SeanCassiere I believe this is ready for release now? |
Mostly so we emulate the other tests and use the browser history. |
SeanCassiere
left a comment
There was a problem hiding this comment.
As mentioned in this discord thread, I've tested this locally with the basic, basic-file-based, kitchen-sink-file-based, and start-basic examples, and I have observed no visible regressions.
@schiller-manuel @tannerlinsley anything blocking this from your side?
you are linking to a private channel - so I cannot follow along :) - any update? |
If you create any hook that relies on a tanstack router hook - it becomes hard to test since the rerender recreates the elements again, I traced it down to this part in matches.tsx
const ResolvedSuspense = !router.state.matches.length ? React.Suspense : SafeFragmentIt makes state changes with only the React.Suspense it works, dont really know if its intended or not? if so please explain how we could get around it for testing.