xmtp / xmtp-react-native

A package you can use to build with XMTP in a React Native or Expo app.
MIT License
40 stars 19 forks source link

Feature request: Add Pagination to refreshConsentList #350

Open alexrisch opened 6 months ago

alexrisch commented 6 months ago

Is your feature request related to a problem?

As consent lists grow, it would be good for integrators to have a way to paginate/shorten the returned response based on their most recent cached value

Describe the solution to the problem

Add pagination support the refresh consent list and consent list to allow integrators more freedom when handling consent

Describe the uses cases for the feature

I as an integrator have a local cache of the users consent list When a user relaunches my app I want to get any changes to consent that have been done since I cached their state I pass in an after to so I can get all of the new consent and only handle the new ones as I have already managed the users consent status previously

I as an integrator want to onboard a new user When a new user first launches the app I can manage loading their existing network consent status in a more performant way by batching the request

Additional details

No response