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

[REQUEST] return Object instead of map of a arguments in batchFn #274

Open
Tracked by #297
jmvtrinidad opened this issue Jul 1, 2021 · 0 comments
Open
Tracked by #297

Comments

@jmvtrinidad
Copy link

What problem are you trying to solve?

Use object in batchFn return instead of function.

Describe the solution you'd like

The user should be able to return an object which contains the key as a cacheKey and its return value as a return. This can improve perf for very large requests/args. instead of mapping the the args with the result, the user can now create an object from the result.

Describe alternatives you've considered

Additional context

Mapping the args for a very few results from the backend is time-consuming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant