Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

fix: don't break the layout when a data request fails #11

Merged
merged 1 commit into from
Jun 5, 2019

Conversation

amcgee
Copy link
Member

@amcgee amcgee commented Jun 5, 2019

Similar to #7, but for errors - as a rule we shouldn't break component layout flow when waiting for data or indicating failed requests. I think generally we should just omit unloaded data unless there's a good UX alternative (tasteful spinners, red error border, etc)

@amcgee amcgee requested review from varl and cooper-joe June 5, 2019 14:52
@amcgee
Copy link
Member Author

amcgee commented Jun 5, 2019

Note that there's no reporting of the error in this case, but that's probably something we should handle in the Data Provider anyway (rather than in every data-wired component)

@varl varl merged commit cb619c7 into master Jun 5, 2019
@varl varl deleted the better-error-rendering branch June 5, 2019 15:50
dhis2-bot pushed a commit that referenced this pull request Jun 5, 2019
## [1.0.4](v1.0.3...v1.0.4) (2019-06-05)

### Bug Fixes

* don't break the layout when a data request fails ([#11](#11)) ([cb619c7](cb619c7))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 1.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants