Comments (4)
Seems like a pretty neat idea. But why is there a need for a dedicated operator? This seems like something a simple wrapper around allSettled
would resolve.
const postLoadedRoute = chainRoute({
route: postRoute,
beforeOpen: {
effect: createEffect(async () => await allSettled(profileQuery.start)),
},
});
from farfetched.
Looks like we need allSettled without scopes in effector itself
from farfetched.
It is noteworthy that only queries are tracked, that is, there is no implicit transparency.
This loosens things up a bit, giving you the certainty you need in the complex concept of transitioning through routes. "This is a query and it will lengthen the wait, this is just a connected effect with analytics and it will work in the background."
from farfetched.
I truly agree that allSettled
without scope would be great 👍
However, I have to mention that allSettled
cannot solve all cases of chained queries.
For example, in some cases, we can open a page after some essential queries and load other data after navigation. In can be solved by some parameters of queryChain
, but plain allSettled
cannot solve this case. So, in my mind, allSettled
definitely would be pretty useful as a part internal implementation of queryChain
.
from farfetched.
Related Issues (20)
- Conditional `cache`
- TypeError: params.valueOf is not a function HOT 2
- How to debug sha1 keys? HOT 2
- Query/Mutation usage as effect HOT 3
- Implement reset method for mutations HOT 1
- types of operator update HOT 1
- Сoncurrency.abort field changes behavior of Query.abort event HOT 1
- Proper `Accept` header should be provided in `createJsonQuery` HOT 1
- Unexpected behaviour of $status and $pending HOT 1
- double query returns $pending = false HOT 2
- `source` in `mapData` does not trigger query `$data` recalculation
- `update` operator's type improvements HOT 2
- Cloudflare workers Error: The 'credentials' field on 'RequestInitializerDict' is not implemented HOT 1
- Cloudflare worker `request.clone()` error
- Add opportunity to directly assign `undefined` for optional properties HOT 1
- `CacheAdapter.__.$instance` should be `StoreWritable` HOT 1
- Missing overload for `createQuery` with 'effect' + 'validate'
- Typing connectQuery() function without fn argument (simplify form) HOT 1
- Added reset event to unitshape protocol HOT 1
- Unable to use `onAbort` more that one time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from farfetched.