jsakamoto / Toolbelt.Blazor.HeadElement

Head element support (change the document title, "meta" elements such as OGP, and "link" elements) for Blazor apps.
https://demo-blazor-headelement.azurewebsites.net/
Mozilla Public License 2.0
158 stars 11 forks source link

Should I reapply <Meta> tags on each page of the app? #26

Open thepra opened 2 years ago

thepra commented 2 years ago

Currently I have a top layer component called <CascadingState> where I provide for common state for every part of the webapp, and there do reside all the <Meta> tags(so I don't need to repeat them for each page) that seem to work fine when a page is loaded with forceReload or it's customized within that same page, updating those tags values in real time.

But the common navigation seem to reset the state of <Meta> tags to the default values(of the original index.html). Then obviously each page has <Title> that setups the state of the title alone. So my final guess is that you can't really separate the states in the way that I did, and the latest activated component does override everything, so I guess I'm gonna write a component to manage in a tight ways such repetitive state and let you all know.

jsakamoto commented 2 years ago

@thepra Thank you for the feedback!

Honestly, I'd never considered this scenario that you said. But anyway, I've been started to be interested in supporting this scenario and resolving this issue.

By the way, I can not work on this issue right now, unfortunately. Because I already have some unresolved feedbacks in my repositories even though now is the Christmas holiday season! So I would appreciate it if you waited for my work to be finished.