Closed PetrKubes97 closed 8 months ago
Oh, this is the old implementation of fl_query. Currently, in v1 this was changed, instead of using refetch
we have separate refresh
and refreshAll
which resolves this confusing behavior
But fl_query@v1 is in alpha currently and the jobs API (QueryJob, MutationJob, InfiniteQuery) is still not enabled, so major refactorings will be needed
@KRTirtho this package will be life saving, will get rid of lot of boilerplate which comes with other Packages. When are you planning to release stable version ?
Hey, v1.0.0 was released last week :D
@PetrKubes97 please check now. Jobs API has been brought back and now with few refactors, all should just work better than before
@KRTirtho I've migrated the code and seems to work great. 🥳 The only issue I've found was 1:1 replacement of mutateAsync with useMutateJob and scheduleToQueue: true, but wasn't looking too deep into it, maybe a feature, not a bug.
The current implementation of refetchQueries refetches all queries NOT specified in the list. Should be reverse. I think.