Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 12 commits into from
Nov 3, 2021

Conversation

arnautov-anton
Copy link
Collaborator

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
Copy link

github-actions bot commented Nov 2, 2021

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

src/context/Feed.tsx Outdated Show resolved Hide resolved
src/context/FeedManager.tsx Show resolved Hide resolved
src/context/Feed.tsx Outdated Show resolved Hide resolved
src/context/Feed.tsx Show resolved Hide resolved
src/context/Feed.tsx Outdated Show resolved Hide resolved
@arnautov-anton arnautov-anton self-assigned this Nov 2, 2021
@arnautov-anton arnautov-anton added the bug Something isn't working label Nov 2, 2021
src/context/Feed.tsx Outdated Show resolved Hide resolved
src/context/FeedManager.tsx Outdated Show resolved Hide resolved
src/context/Feed.tsx Outdated Show resolved Hide resolved
@arnautov-anton arnautov-anton merged commit b67a2b7 into main Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants