garfish icon indicating copy to clipboard operation
garfish copied to clipboard

强烈建议给一个多页签缓存(keep alive)的demo

Open wufeicris opened this issue 1 year ago • 1 comments

Clear and concise description of the problem

类似于vue的keep alive,在不同子应用之间来回切换时,能够缓存页面

Suggested solution

类似于vue的keep alive,在不同子应用之间来回切换时,能够缓存页面

Alternative

No response

Additional context

No response

Validations

  • [X] Read the Contributing Guidelines.
  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

wufeicris avatar Aug 05 '22 12:08 wufeicris

目前可以通过手动控制应用的加载来进行应用的缓存,本身 Garfish 对于子应用就是具备缓存能力的整体的消耗会比 iframe 消耗更低可以参考 https://www.garfishjs.org/guide/cache,另外可以通过 loadApp API 来进行应用的加载,返回的 app 实例,可以通过手动调用 show 和 hide 来最大程度复用缓存

zhoushaw avatar Aug 14 '22 08:08 zhoushaw