Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dash 2.0 #13

Merged
merged 294 commits into from
Jun 21, 2017
Merged

Dash 2.0 #13

merged 294 commits into from
Jun 21, 2017

Conversation

chriddyp
Copy link
Member

fixes #11 😉

chriddyp and others added 30 commits May 30, 2016 08:24
`UpdateDpendants` copies the child component and passes in a connected
`updateDependants` dispatching function that the presentational or
widget control can use when it wants to signify that its state has
updated and that it’s dependent components should use its new props to
update their values via the `/update-components` POST request
(we’ll need this in a subsequent commit)
this function gets called when a component updates and dispatches
`updateDependants`.
this action:
- looks at the component’s dependants
- makes POSTs to /update-component for each of the component’s
dependant’s with all of the necessary dependencies
- update’s each of the dependant’s with the new values from the
response of the /update-component POST
- recursively continues, dispatching to `updateDependants` with each of
those dependendant’s dependants

consider: A depends on B which depends on C
when C changes, it dispatches `updateDependants` to update the value of
B. on the response of that POST, B updates and makes a dispatch to
update A with B’s new values
@chriddyp chriddyp merged commit d2ebc83 into master Jun 21, 2017
@chriddyp chriddyp deleted the d2 branch June 21, 2017 14:25
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this pull request May 22, 2021
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this pull request May 28, 2021
HammadTheOne pushed a commit that referenced this pull request Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dash 2.0
4 participants