Hi,@asghar bizaval ,there's nothing wrong with your codes ,make sure your component is in interactive render mode
You could call @rendermode InteractiveServer
in your component to apply InteractiveServer render mode to current component,you could also call
<Routes @rendermode="InteractiveServer" />
.......
<HeadOutlet @rendermode="InteractiveServer" />
in app.razor to configure the whole app as interactive.
Now it's ok on my side :
For more details,you could read this document
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Ruikai Feng