Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(react): Use initialEntries in wrapped routers. #14854

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

onurtemizkan
Copy link
Collaborator

@onurtemizkan onurtemizkan commented Dec 30, 2024

Resolves: #14814

I was not able to properly distinguish between the instances of BrowserRouter and MemoryRouter. However, using initialEntries with BrowserRouter should break TypeScript where it's available. We can alternatively export a wrapper specific to MemoryRouter if that makes better sense.

@onurtemizkan onurtemizkan force-pushed the onur/react-initial-entries branch from e479bde to 9f1cd47 Compare December 30, 2024 10:38
Copy link

codecov bot commented Dec 30, 2024

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
114 1 113 8
View the top 1 failed tests by shortest run time
client-app-routing-instrumentation.test.ts Creates a navigation transaction for app router routes
Stack Traces | 30s run time
client-app-routing-instrumentation.test.ts:19:5 Creates a navigation transaction for app router routes

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

@onurtemizkan onurtemizkan force-pushed the onur/react-initial-entries branch from 9f1cd47 to 6a7c1a0 Compare January 1, 2025 11:50
@onurtemizkan onurtemizkan marked this pull request as ready for review January 1, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant