get_it icon indicating copy to clipboard operation
get_it copied to clipboard

Get instances which are ready

Open qalmari-klaus opened this issue 3 years ago • 1 comments

Is it possible to get instances that are ready? For example, when a user logs out, I need to reset all instances (repositories). If I use the reset method error will be thrown if one of those is not ready.

Thanks 👍

qalmari-klaus avatar Jun 16 '22 13:06 qalmari-klaus

you can use the allReady or isReady method after a reset. But I would recommend using scopes to handle you example with a user logging out.

escamoteur avatar Jul 15 '22 13:07 escamoteur