Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try setting @rendermode attribute on component (it works!) #2

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Eilon
Copy link
Collaborator

@Eilon Eilon commented Feb 28, 2024

Per the Blazor sync discussion today, I tried setting <SomeComponent @rendermode="@(SomeGlobalValue)" /> to see if the pattern works here as well. And, it seems it does! I tried in Blazor Web and .NET MAUI Blazor Hybrid. I also tried with 'invalid' values (like using WASM without it being enabled) just to ensure the code was executing and not merely being ignored.

This PR is just to show that it works and isn't something needed for the template.

Base automatically changed from eilon/addrendermode to master April 8, 2024 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant