Skip to content

Handling ongoing operations / subsequent call to get() #159

@marcoscaceres

Description

@marcoscaceres

The spec is currently missing a model for dealing with subsequent call to get() (i.e., subsequently calling .get()).

We have two options. A subsequent call to get():

  1. aborts the current get request (AbortError). New call to get() takes over.
  2. gets aborted or invalidated (with the respective exceptions). Current call continues until it settles.

Given that we always show UI, the implications of 1 could be annoying to users. It would mean it would that it could be used to serve the same purpose as the abort controller.

Thus, my preference is that we use 2, as it prevents accidental tear down of the presentment UI. Developers can still tear down the UI with the abort controller whenever they choose.

Thoughts?

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions