Skip to content

ER的controller提供的abort不能打断已经在加载中的action的异步状态 #119

@leowang721

Description

@leowang721

ER的controller,子Action的渲染方法renderChildAction中指定abort为loader的,但是有个问题,子Action已经enter了,Model尚在loading,这时候使用abort无法打断子Action的渲染,而子Action的实例又只能loadingChildAction为resolved才暴露到外面

我这时在外面去调用abort实际上无法打断子Action的渲染,而且此时无法在外面获取到子Action的实例,也就无从调用leave方法

loader.abort就是标记了aborted为true,能够不去enterAction,但是Action已经enter了,当前已经是第二个阶段了,就是Action.enter返回的Promise

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