Skip to content

[0.11.0] 2020-06-01

Compare
Choose a tag to compare
@vishalnarkhede vishalnarkhede released this 11 Jun 08:20
· 3630 commits to master since this release

Non breaking changes

UX improvements of ChannelList component

IMAGE ALT TEXT HERE IMAGE ALT TEXT HERE IMAGE ALT TEXT HERE
  • So far we only had LoadingErrorIndicator (which can be customized using prop LoadingErrorIndicator). This error indicator replaces the entire channel
    list on screen. So if your 2nd page of list results in error, we used to remove all the already fetched channels and show this full screen error indicator.
    Instead we have introduced following error indicators, which will be displayed at top of the list in case or error. Please note that if first page of
    queryChannels api results in error, we will display LoadingErrorIndicator

    • HeaderErrorIndicator
    • HeaderNetworkDownIndicator
  • Introducing following new props to ChannelList component

    • FooterLoadingIndicator {UI Component} To override default spinner at footer of channel list (introduced in this release)
    • HeaderErrorIndicator {UI Component} To override default HeaderErrorIndicator
    • HeaderNetworkDownIndicator{UI Component} To override default HeaderNetworkDownIndicator
  • Introduced pull to refresh functionality, to refresh the ChannelList in case of failure.

  • Adding following prop to LoadingErrorIndicator

    • retry {func} If you are using custom LoadingErrorIndicator for your ChannelList component, you can attach this function to CTA button
      to reload the ChannelList.
  • Added retry mechanism to ChannelList's queryChannels api call. In case of failure, api will be retried 3 times (max) at the interval of 2 seconds.