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

Add a Blazor Cache component #55520

Open
danroth27 opened this issue May 3, 2024 · 2 comments
Open

Add a Blazor Cache component #55520

danroth27 opened this issue May 3, 2024 · 2 comments
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one
Milestone

Comments

@danroth27
Copy link
Member

MVC & Razor Pages have a cache tag helper that can be used to cache part of the rendered output of a page. We should consider if we want to add a Blazor Cache component with similar functionality.

Related features requests from the community:

To support this in Blazor, we'd need to figure out how it would work with Blazor's various render modes.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label May 3, 2024
@mkArtakMSFT mkArtakMSFT added the enhancement This issue represents an ask for new feature or an enhancement to an existing one label May 6, 2024
@mkArtakMSFT mkArtakMSFT added this to the Backlog milestone May 6, 2024
@ElderJames
Copy link
Contributor

Hello @danroth27 , can I understand that this is to implement the keepalive mechanism in vue?
In AntDesign Blazor's ReuseTabs component, I implemented a similar mechanism for component state caching, but with instances of the component kept on the page and hidden and displayed by style.

https://antblazor.com/en-US/experimental/reusetabs

@danroth27
Copy link
Member Author

can I understand that this is to implement the keepalive mechanism in vue?

Maybe? I was mostly motivated by providing parity with the features we have in MVC & Razor Pages. I'm not really familiar enough with the Vue KeepAlive feature to say whether that's the approach we should take, but we welcome the community's thoughts on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one
Projects
None yet
Development

No branches or pull requests

3 participants