-
Notifications
You must be signed in to change notification settings - Fork 94
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
Allow setting new data based on old data #103
Comments
Excellent suggestion! We certainly should support this usecase (updating data based on the previous data and the new data). This doesn't just apply to transform: (newData, oldData, props, args) => newData + oldData // do whatever What we need to consider:
|
@all-contributors please add @elsangedy for ideas |
I've put up a pull request to add @elsangedy! 🎉 |
For those who want this feature right now, here's how you can accomplish it: https://codesandbox.io/s/react-async-pagination-og13b |
Now is not possible update the current data inside deferFn, I only can replace with new data.
It would be nice if deferFn get the current state or data as a parameter, this can be able implement features like infinite scroll
The text was updated successfully, but these errors were encountered: