-
-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Bug Report
For more information, see the CONTRIBUTING guide.
Prerequisites
- Can you reproduce the problem in a MWE?
- Are you running the latest version?
- Did you perform a search in the issues?
Environment Details and Version
- Piral.Blazor: latest
- piral: latest
- Blazor: WebAssembly
- OS: Windows/Mac
- Browser: Chrome/Firefox
Description
Upgrading to React Router v7 is currently not possible when using Piral.Blazor because the package depends on piral instead of @piral/core.
The piral package tightly couples routing behavior and internally manages React Router, which prevents consumers from configuring or replacing the router. React Router v7 introduces breaking changes that require explicit router control, which is not achievable with the current Piral.Blazor dependency setup.
As a result, Piral.Blazor consumers are blocked from upgrading React Router and modernizing their React stack.
Steps to Reproduce
- Create a Piral-based application using Piral.Blazor
- Attempt to upgrade react-router / react-router-dom to version 7
- Observe dependency conflicts and/or incompatible routing behavior caused by Piral’s internal router
Expected behavior
Piral.Blazor should allow host applications to control routing so that:
React Router v7 can be used
Routing behavior can be customized or replaced
Consumers are not locked into Piral’s routing implementation
Actual behavior
React Router cannot be upgraded beyond v5
Routing is tightly coupled to Piral internals
Host applications cannot configure or override the router
Possible Origin / Solution
Piral.Blazor could be made routing-agnostic by:
Depending on @piral/core instead of piral, or
Providing a way to inject or configure the router externally, or
Decoupling routing concerns so the host application owns router setup
This would unblock React Router v7 upgrades and improve long-term compatibility.