Since Blazor 3.1 Preview 2 it should be possible to prevent default navigation behaviour for links in Blazor, as also discussed in this answer.
However, this code:
<NavLink href="" Match="Match" @onclick:preventDefault @onclick="()=>LinkAction()" >
Do something
</NavLink>
gives this error:
The component parameter 'onclick' is used two or more times for this component. Parameters must be unique (case-insensitive)
Why is that?