GetStream / react-activity-feed

Stream React Activity Feed Components
https://getstream.io/react-activity-feed/
BSD 3-Clause "New" or "Revised" License
137 stars 83 forks source link

FIX: Feed, FlatFeed, NotificationFeed - `options` change wouldn't trigger refresh #313

Closed arnautov-anton closed 3 years ago

arnautov-anton commented 3 years ago

Changing options property in either FlatFeed or NotificationFeed would not trigger re-fetch with newly updated options. Moved refresh to Feed, added Lodash.isEqual to compare if anything changed and added this reference to it's own effect dependency array. Also added notify property to trigger subscribe/unsubscribe effect.

github-actions[bot] commented 3 years ago

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
dist/index.js 217.82 KB (+0.04% 🔺) 4.4 s (+0.04% 🔺) 476 ms (+3.97% 🔺) 4.9 s
dist/index.css 8.17 KB (0%) 164 ms (0%) 0 ms (+100% 🔺) 164 ms