0.7.2 • Published 6 years ago

react-async-effect v0.7.2

Weekly downloads
8
License
MIT
Repository
-
Last release
6 years ago

React Async Effect

downloads version MIT License

All Contributors

Supports React and Preact size gzip size module formats: umd, cjs, and es

Watch on GitHub Star on GitHub Tweet

The problem

You want to render the result of an asynchronously effect (action) that happens outside the scope of the component. In order to do so, you have to take care and be aware of the communication format (is it a promise, an observable or a pubsub?) and not only, you should manage race condition against the component unmounting. More, you also need to represent the current state of that action on screen, being either a pending state, an error or the proper result. In case of error, you want to allow user to retry.

This solution

This component helps on the creation of components that provides control over an async effect, so it deals only with its task. Also, it normalizes the way of work on imperative effects modeled as components.

Table of Contents

Props

TBD

Contributors

Thanks goes to these people (emoji key):

Edygar de Lima Oliveira💻 📖 🚇Miguel Silva💻 🤔

This project follows the all-contributors specification. Contributions of any kind welcome!

LICENSE

MIT

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago