forked from mengyxu/noob-components
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
796 B
52 lines
796 B
|
3 months ago
|
# State Management
|
||
|
|
|
||
|
|
> How state is managed in this project.
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## Overview
|
||
|
|
|
||
|
|
<!--
|
||
|
|
Document your project's state management conventions here.
|
||
|
|
|
||
|
|
Questions to answer:
|
||
|
|
- What state management solution do you use?
|
||
|
|
- How is local vs global state decided?
|
||
|
|
- How do you handle server state?
|
||
|
|
- What are the patterns for derived state?
|
||
|
|
-->
|
||
|
|
|
||
|
|
(To be filled by the team)
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## State Categories
|
||
|
|
|
||
|
|
<!-- Local state, global state, server state, URL state -->
|
||
|
|
|
||
|
|
(To be filled by the team)
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## When to Use Global State
|
||
|
|
|
||
|
|
<!-- Criteria for promoting state to global -->
|
||
|
|
|
||
|
|
(To be filled by the team)
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## Server State
|
||
|
|
|
||
|
|
<!-- How server data is cached and synchronized -->
|
||
|
|
|
||
|
|
(To be filled by the team)
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## Common Mistakes
|
||
|
|
|
||
|
|
<!-- State management mistakes your team has made -->
|
||
|
|
|
||
|
|
(To be filled by the team)
|