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

KeepAliveOutlet path属性提供通配符匹配或者正则表达式匹配 #6886

Open
Cloud-Yao opened this issue May 14, 2024 · 2 comments
Open

Comments

@Cloud-Yao
Copy link

Summary | 概述

No response

Motivation | 背景

在一些情况下,path属性不好写为固定值,最好有一个匹配规则,例如正则表达式,通配符匹配等等,匹配成功则缓存改路由,类似Vue中KeepAlive那样。

Usage example | 使用示例

No response

Detailed design | 方案设计

如题。

Additional context | 额外信息

No response

@Cloud-Yao Cloud-Yao added the rfc label May 14, 2024
@Cloud-Yao
Copy link
Author

https://cn.vuejs.org/guide/built-ins/keep-alive.html#include-exclude Vue这种KeepAlive灵活性会高不少

@ClarkXia
Copy link
Collaborator

非常棒的想法,可以考虑直接给我们 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants