im using a library with an api like foo.method(...args).run(pool)foo.method(...args).run(pool) and i want to abstract it so i dont need to add .run(pool).run(pool) to every call.. whats the best way to approach this, without having to change anything to the usage except for removing the .run(pool).run(pool)? is a proxy useful here, or is there something else that doesnt require maintaining a list of methods on the original object?
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
R
Reactiflux
The largest chat community for React professionals