Skip to content

React Router v7 (and others) not receiving path properties #155

@pakeerathanchandrabalael

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

  1. Create a Piral-based application using Piral.Blazor
  2. Attempt to upgrade react-router / react-router-dom to version 7
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blazor-v10Applied to .NET 10blazor-v8Applied to .NET 8.0blazor-v9Applied to .NET 9.0bugSomething isn't workingrouterRegarding routing / page navigation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions