GithubHelp home page GithubHelp logo

[Question] Form Wizard about flux HOT 6 CLOSED

facebook avatar facebook commented on April 18, 2024
[Question] Form Wizard

from flux.

Comments (6)

tcoopman avatar tcoopman commented on April 18, 2024

Problem 1:

Why don't you keep your data/state in a parent component containing both the form and the submit?

Problem 2:

If I'm correct, flux dictates that you should submit to the server with util classes, not in the stores. The util classes can then send an action (succeeded or failure).
If you want to show merged responses, then I think the util class should keep track of requests send and should wait until all request have either failed or succeeded, and then send the action with all results as an argument. Each responsible store can then act on them. The mainstore could check for failed requests and show the popup.

from flux.

mtsyganov avatar mtsyganov commented on April 18, 2024

@tcoopman

  1. because in the UI the submit button is far far away from content frame
  2. Is it ok from architecture point of view to send from store A messages to store B without dispatcher? With dispatcher its not always possible, because sometimes store would send an action while executing another action.

from flux.

sterpe avatar sterpe commented on April 18, 2024

Sort of violates unidirectional data flow. If you really had to use dispatcher from store you could setImmediate(dispatchfn)

Sent from my iPhone

On Sep 19, 2014, at 5:35 AM, Michael Tsyganov [email protected] wrote:

@tcoopman

  1. because in the UI the submit button is far far away from content frame

Is it ok from architecture point of view to send from store A messages to store B without dispatcher? With dispatcher its not always possible, because sometimes store would send an action while executing another action.

Reply to this email directly or view it on GitHub.

from flux.

sterpe avatar sterpe commented on April 18, 2024

It feels like you have a pre-existing system state that is sort of side-effect based then you are trying to model that system with a flux architecture and it's not really working.

Sent from my iPhone

On Sep 19, 2014, at 5:35 AM, Michael Tsyganov [email protected] wrote:

@tcoopman

  1. because in the UI the submit button is far far away from content frame

Is it ok from architecture point of view to send from store A messages to store B without dispatcher? With dispatcher its not always possible, because sometimes store would send an action while executing another action.

Reply to this email directly or view it on GitHub.

from flux.

 avatar commented on April 18, 2024

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

from flux.

kyldvs avatar kyldvs commented on April 18, 2024

This is stale so closing out. Looking over the examples may be useful to you. There have also been some recent examples that include talking to the server: https://github.com/staltz/flux-challenge/tree/master/submissions/kyldvs

from flux.

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.