Closed probil closed 6 years ago
Yes a object definition may be better in current scenario, thanks for your advice! And, would you like to create a pr to improve it? 😀
:thinking: Probably we should update some adapter options key
e.g. enabledByDefault
looks better for me than cacheEnabledByDefault
But it seems like it should be solved as separated issue
argument changed and released v3.0.0
Awesome! :tada:
It might be better to pass arguments to adapters as an object. I mean, instead of:
use
Advantages:
1) easier to use default values of given params For example, currently if I want to pass only custom cache I have to define all other arguments as
undefined
. And it looks weird:2) more explicit (self-descriptive) arguments
It's hard to recognize what is
false
without checking the docs. It is not good developer experienceWhat do you think about that @kuitos ?