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

docs: module state declaration as function #1741

Merged
merged 3 commits into from May 1, 2020
Merged

Conversation

cuebit
Copy link
Member

@cuebit cuebit commented Apr 30, 2020

This PR replaces all state declaration as functions for module examples only.

Leading by example, pun intended, this will encourage users to avoid common pitfalls with shared declarative state.

Instance state examples are retained as Object since this does not apply to root state.

Closes #1477

@cuebit cuebit added the documentation Improvements or additions to documentation label Apr 30, 2020
@cuebit cuebit requested a review from kiaking April 30, 2020 20:37
Copy link
Member

@kiaking kiaking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot 🙌 Looking good to me

@kiaking kiaking merged commit eb33ed6 into dev May 1, 2020
@kiaking kiaking deleted the docs-module-state-fn branch May 1, 2020 03:09
@cuebit
Copy link
Member Author

cuebit commented May 1, 2020

@kiaking an afterthought, do the gitbook-docs require updating also?

@kiaking
Copy link
Member

kiaking commented May 1, 2020

@cuebit No. That's for old doc reference. Only updating docs folder is good 👍

@cuebit
Copy link
Member Author

cuebit commented May 1, 2020

@kiaking thought so. Thanks for confirming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants