Skip to content

支持update的生命周期,app实例支持update方法 #759

@milkgod1

Description

@milkgod1

Clear and concise description of the problem

  • 注意到bridge其实提供了update的方法,目前文档上还有update的返回,但是实际已经变成render?link
  • 但是目前的lifecycle,以及loadApp的返回并没有update的方法,如果更新props,调用show方法是否合理?个人感觉生命周期来看应该不是给update用的,区别是bool参数,但是含义比较抽象。
  • 如果从MF迁移到garfish会有props触发视图更新的需求,从qiankun还有garfish的文档看微前端这一点是合理的

Suggested solution

garfish app 提供update方法
garfish lifecycle 提供update生命周期

Alternative

在文档中标明update的逻辑

Additional context

No response

Validations

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions