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

mini-framwork subject {wording} #2182

Closed
fulverin opened this issue Sep 10, 2023 · 1 comment · Fixed by #2186
Closed

mini-framwork subject {wording} #2182

fulverin opened this issue Sep 10, 2023 · 1 comment · Fixed by #2186
Assignees

Comments

@fulverin
Copy link

social-network

In this paragraph :

State Management

The state of an app can be seen as the outcome of all of the actions that the user has taken since the page loaded. In other words, if a user clicks on a button to execute an action, the state should then change.
What you will need to do is to implement a way to handle this state. Remember that multiple pages can need to interact with the same state, so you need to find a way to let the state be reachable at every time.

that phrase :

Remember that multiple pages can need to interact with ...

I would say " Remember that multiple pages may need to interact with ..."
I am not a native English speaker so I can not guarantee the value of my suggestion.

Here is my attempt to reformulate the block:

The app's current state is the result of the previous state and any interaction since last state. The initial state being the first page after loading.
A user modifying anything on the page by clicking on a button, performs an update from the previous state to the next one.
You will implement the logic that updates the state. Remember that the same state may be shared by different pages, so it should be accessible across pages.

@mikysett mikysett self-assigned this Sep 11, 2023
@mikysett mikysett linked a pull request Sep 11, 2023 that will close this issue
@mikysett
Copy link
Contributor

Hello @fulverin and thanks a lot for this contribution also,

You are right and there is a typo in the subject which is fixed by this PR

I also like the rephrase of the "State Management" definition, still I won't implement it because here the goal is not to give the best in class definition about what state management is but just to give the bare minimum info so resources can be found about the subject if someone wants to deep-dive.

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 a pull request may close this issue.

2 participants