Skip to content

Model#2

Merged
ddibened merged 3 commits intomasterfrom
model
Nov 4, 2018
Merged

Model#2
ddibened merged 3 commits intomasterfrom
model

Conversation

@ddibened
Copy link
Copy Markdown
Collaborator

@ddibened ddibened commented Nov 3, 2018

More succinct model, as well as updates to README and ExTab (it now has a button and state), I think this will be helpful for your Saturday code session, so please pull first :) (it shouldn't change anything you have written on your own.

… button, as well as corresponding test. Components are passed copy of stored

state, and they pass registerFinalState() to Model on unmount.

All tests passing, though I rolled back some tests because they failed on
refactor.  Added some functionality to ExTab as an example of updating state
and a button. Also updated the README.
@ddibened
Copy link
Copy Markdown
Collaborator Author

ddibened commented Nov 3, 2018

important note: the tree doesn't yet pass down the 'registerFinalState' function all the way to the components (by which I mean tabs), it stops in the 'props' of TabDisplay, because I haven't thoroughly tested it yet, but I don't think we are at the point where we are testing persistent state yet, so it shouldn't be a problem :)

@ddibened ddibened merged commit f865c2d into master Nov 4, 2018
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.

1 participant