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

能支持多标签页吗? #4

Open
at0717 opened this issue Mar 1, 2024 · 5 comments
Open

能支持多标签页吗? #4

at0717 opened this issue Mar 1, 2024 · 5 comments

Comments

@at0717
Copy link

at0717 commented Mar 1, 2024

遇到的不少项目都会有保持标签数据的需求,react没有keepalive,这块基本没有成熟的方案支持

@panyushan-jade
Copy link
Owner

panyushan-jade commented Mar 1, 2024 via email

@at0717
Copy link
Author

at0717 commented Mar 1, 2024

react现在不需要hack keepalive方案了,zustand+router6,应该能实现了

@panyushan-jade
Copy link
Owner

react现在不需要hack keepalive方案了,zustand+router6,应该能实现了

是吗,没听说呢,不过好像后续react会支持

@Lil-Kr
Copy link

Lil-Kr commented Apr 8, 2024

@panyushan-jade @at0717
目前我也在尝试使用 antd5 + react18 + zustand 做一个后台模板, 遇到了一点怪事情, 点击左侧的菜单无法动态生成Tabs,

思路就是利用 zustand持久化的能力存到 localstorage中.....目前需要手动刷新能读取到tabs信息,感觉组件件的无法通信......还在解决中.... 目前很痛苦....

image

手动刷新之后:

image


git-repo: https://github.com/Lil-Kr/blog-system-single/tree/oh-router-change-base

@Lil-Kr
Copy link

Lil-Kr commented Apr 9, 2024

这个问题已经fix了,zustand 的写法不对导致的

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

No branches or pull requests

3 participants