Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

Add post on composable state management in iOS#312

Open
jw1540 wants to merge 9 commits intoskybet:masterfrom
jw1540:mobile-state-managemet
Open

Add post on composable state management in iOS#312
jw1540 wants to merge 9 commits intoskybet:masterfrom
jw1540:mobile-state-managemet

Conversation

@jw1540
Copy link
Copy Markdown

@jw1540 jw1540 commented Apr 22, 2021

No description provided.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 22, 2021

Deploy preview for sbg-technology ready!

Built with commit b916002

https://deploy-preview-312--sbg-technology.netlify.app

#### Resources:
(The Composable Architecture) [https://www.pointfree.co/collections/composable-architecture]
(Redux) [https://redux.js.org/tutorials/fundamentals/part-1-overview]
(ReSwift) [https://github.com/ReSwift/ReSwift]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think you need to remove the space between the () and the [] for the links to work

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

thanks!

For every application, there's some state that drives it. In our case, state is things like the user, their balance, the betslip, opportunites and events. All of these things contribute to the successful working of our app. As we build out additional components, the places in which these are shared grows. Consequently, the places in which these states can be modified grows too.

#### Actions
So, as our components grow and the various modifications to state increases, need ways of strictly modifying it. This is where Actions come in. For every change that can be made to state, we dispatch an action - to where will be covered soon. Doing this allows us to easily reason about, debug and, importantly, follow, where changes to state might come from. This makes any change to the global state tree totally _predictable_.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

...increases, we need...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants