You could try put state in the the Routes.razor
<ShoppingCartState>
<Router AppAssembly="typeof(Program).Assembly">
...
</Router>
</ShoppingCartState>
By the way how do you wrap the components? what difference between <ShoppingCartPage>
and <ShoppingCart>
?