GetDutchie / brick

An intuitive way to work with persistent data in Dart

Home Page:https://getdutchie.github.io/brick/#/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't use providerArgs with getBatched

pkozlovskiy opened this issue · comments

My providerArgs (witch i use in request) is loosing when I use getBatched
query = (query ?? Query()).copyWith(providerArgs: {'limit': batchSize});
i think this right code

    query = (query ?? Query()).copyWith(
        providerArgs: (query?.providerArgs ?? {})
          ..addAll({'limit': batchSize}));

@pkozlovskiy good catch. I've merged a fix into master and it will be available in the next package release.