Skip to content
This repository was archived by the owner on May 15, 2018. It is now read-only.
This repository was archived by the owner on May 15, 2018. It is now read-only.

Proposal: add an async way to navigate (without all those loading states) #54

@iduuck

Description

@iduuck

All things mentioned here doesn't have anything to do with the Link components or other components of the react-router library.

Minimum valuable product/idea:

  • User clicks on a custom Link components
  • An redux action is dispatched, let us call this one NAVIGATE_START
  • The developer has attached a Promise or async action to the Link component
  • The Promise/async action is resolving or rejecting and automatically dispatching a redux action (let's call this one NAVIGATE_END/success or NAVIGATE_END/failure)

Now, since the user needs some visual feedback for the loading process, it would be awesome to have something like loadie.js (buggy and old) or nprogress. The start method is called on NAVIGATE_START and the finish method is called on NAVIGATE_END/*


What we need

  • Link components
  • The corresponding actions
  • Middleware to dispatch the start and finish actions from nprogress or else

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