Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GetStream/react-native-activity-f…
Browse files Browse the repository at this point in the history
…eed into vishal/prop-type-fix
  • Loading branch information
vishalnarkhede committed Apr 9, 2021
2 parents b5e5080 + 7060571 commit be2ccd8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

> React Native components to create activity and notification feeds using Stream
> 🎉 [v1.0.1](https://github.com/GetStream/react-native-activity-feed/releases/tag/v1.0.1) supports Expo 40 and react-native 0.63 🎉
[![NPM](https://img.shields.io/npm/v/react-native-activity-feed.svg)](https://www.npmjs.com/package/react-native-activity-feed)
[![Build Status](https://travis-ci.org/GetStream/react-native-activity-feed.svg?branch=master)](https://travis-ci.org/GetStream/react-native-activity-feed)
[![Component Reference](https://img.shields.io/badge/docs-component%20reference-blue.svg)](https://getstream.github.io/react-native-activity-feed/)
Expand Down
7 changes: 7 additions & 0 deletions src/Context/StreamApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ export class StreamApp extends React.Component {
this.setState({ t, tDateTimeParser });
}

componentWillUnmount() {
const client = this.state.client;
if (client && client.fayeClient) {
client.fayeClient.disconnect();
}
}

render() {
if (!this.state.t) return null;

Expand Down

0 comments on commit be2ccd8

Please sign in to comment.