Skip to content

Implement and update react-query, infinite feed hook, prefetch notifications #4618 #4641

Martin Santangelo requested to merge js/react-query-optimize-notif into master

Ticket(s) / Related Merge Requests

#4618 (closed) #4641 (closed)

Summary of Changes

  • Updated react-query to v4
  • Implemented react-query support in the app
  • Created a custom hook to query feeds with token-based pagination
  • Fixed notifications refresh when pressing the tab button again
  • Added a prefetch of the notifications when the app starts
  • Added a prefetch of the notification's extra tabs when the user opens the notification screen
  • Added support to fetch/refresh on focus to the useApiFetch hook

Testing Considerations

  • Log in
  • Open the notifications
  • The data should be prefetched and then updated when the screen is opened the first time

Regression Scope

It should affect only the notifications screen

Platform Affected (web, mobile, etc)

both

Developer Testing Completed

iOS sim

Screenshots

demo

Does this impact

  • Localization
  • Dark/light mode
  • Guest mode
Edited by Martin Santangelo

Merge request reports