Git Product home page Git Product logo

Comments (4)

Drevoed avatar Drevoed commented on June 15, 2024 3

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.

zerobias avatar zerobias commented on June 15, 2024 3

Looks like we need allSettled without scopes in effector itself

from farfetched.

zerobias avatar zerobias commented on June 15, 2024 1

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.

igorkamyshev avatar igorkamyshev commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.