Skip to content

Where is the action's status set to "success" or "error"? #45

Open
@jcroll

Description

@jcroll

In your documentation it says:

If it receives an Flux Standard Action whose payload is a promise, it will either

  • dispatch a copy of the action with the resolved value of the promise, and set status to success.
  • dispatch a copy of the action with the rejected value of the promise, and set status to error.

I see no other mention of this status field anywhere in the code of this library and I have not seen any field in my resolved action in my testing of this library.

There is a field called error but I am more interested in knowing whether there has been a successful request.

Does it still exist or perhaps this is legacy from and earlier spec of FSA?

I ask b/c I am looking for a way to use FSA to determine if an action is in the process of making a request (e.g. isFetching) how to do this?

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